New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User-friendly errors #12

merged 3 commits into from Sep 17, 2015


2 participants

terfilip commented Sep 11, 2015

Simply will throw error in case an object from NCBI has undefined properties that are required by bionode. The message will mention this could be an NCBI problem, and show the URL of the request.

Test data was out of date and making travis CI fail for the current blonde-ncbi. I updated test/data.json to have current ncbi data and make tests pass. Some fetched with script here + manual changes such as replacing 'content' with '_'.


This comment has been minimized.


terfilip commented Sep 14, 2015

@bmpvieira Do you want me to add do a test for the error handling? The error occurs when transform gets an empty object. I guess the testing could be done by mocking the ncbi url using nock or something, and send back an empty/invalid object, to trigger the error.

terfilip added some commits Sep 11, 2015

resolves #8
Signed-off-by: Filip Ter <>
Updating test data
Signed-off-by: Filip Ter <>
Adding nock test
Signed-off-by: Filip Ter <>

bmpvieira added a commit that referenced this pull request Sep 17, 2015

@bmpvieira bmpvieira merged commit edb75c1 into bionode:master Sep 17, 2015

1 of 2 checks passed

coverage/coveralls Coverage decreased (-0.4%) to 82.222%
continuous-integration/travis-ci/pr The Travis CI build passed

@bmpvieira bmpvieira removed the in progress label Sep 17, 2015

@terfilip terfilip deleted the terfilip:errors branch Sep 30, 2015

@terfilip terfilip restored the terfilip:errors branch Sep 30, 2015

@terfilip terfilip deleted the terfilip:errors branch Oct 27, 2015

@bmpvieira bmpvieira self-requested a review Apr 6, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment