-
Notifications
You must be signed in to change notification settings - Fork 220
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
fix: pass on error to callback for better error messages #262
Conversation
@michael-ciniawsky thanks, let me know if there is anything else I need to do to get this in 😃 |
@vinteo You need to sign the CLA please, close and reopen the PR to trigger the CLA Bot again |
@michael-ciniawsky I have signed it, its the travis that's not triggering or am I missing something? |
😅 Yeah... my bad all good 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add test(s)?
@evilebottnawi There are no tests in this library so I wasn't fully sure where to start but I created a very simple test for this very specific scenario |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! One note.
@@ -0,0 +1,24 @@ | |||
import {assert} from 'chai' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's avoid using unit
directory for test file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is an existing folder (for the demo test) and the current test config doesn't support it in the root test
folder. What name do you suggest?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vinteo oh sorry, i think we update tests (migrate to jest
) in this repo, do nothing, leave everything as is 👍
@vinteo - Can you rebase in latest master when you have a moment, solves the issue with Travis not running PRs |
@d3viant0ne done! 😃 |
Thanks :) |
Please check if the PR fulfills these requirements
What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
Bugfix
Duplicate of fix: return with
{Error}
#215What is the new behavior?
A proper error is given
Does this PR introduce a breaking change?
Issues
PRs
{Error}
#215