biothings / biomedical_id_resolver.js

js library for converting biological ids in batch
Apache License 2.0
1 stars 2 forks source link

Re-throw SRI resolver errors with more informative msg #82

Closed tokebe closed 2 years ago

tokebe commented 2 years ago

(addresses biothings/BioThings_Explorer_TRAPI/issues/382)

Errors in axios requests to the SRI resolver are caught and re-thrown with the addition of SRI resolver failed: to the beginning of the error message, to make it clear where the error occurred.

This is somewhat of a bandaid solution as we may wish to better handle errors from ID resolution.