eweitz / ideogram

Chromosome visualization for the web
https://eweitz.github.io/ideogram
Other
294 stars 71 forks source link

Throw informative error upon searching unknown gene in "Related genes" kit #267

Closed eweitz closed 3 years ago

eweitz commented 3 years ago

This adds some engineer-facing handling when an unknown gene is searched in the "Related genes" kit.

For example, if a user searches "Foo" in human, Ideogram now throws a relatively informative error:

"Foo" is not a known gene in Homo sapiens

This enables client developers to catch and better handle such specific errors.

coveralls commented 3 years ago

Coverage Status

Coverage increased (+0.01%) to 89.103% when pulling c806ad3616b7409375696b66324b6b5b17176c50 on handle-unknown-gene into ece3b0eaf3f329af8f605cce471c3f8d341b3e03 on master.