Skip to content
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

Merged
merged 1 commit into from
Oct 5, 2017
Merged

fix: pass on error to callback for better error messages #262

merged 1 commit into from
Oct 5, 2017

Conversation

vinteo
Copy link
Contributor

@vinteo vinteo commented Sep 11, 2017

Please check if the PR fulfills these requirements

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)

What is the new behavior?

A proper error is given

Does this PR introduce a breaking change?

  • Yes
  • No

Issues

PRs

edited by @michael-ciniawsky (Formatting)

@jsf-clabot
Copy link

jsf-clabot commented Sep 11, 2017

CLA assistant check
All committers have signed the CLA.

@vinteo
Copy link
Contributor Author

vinteo commented Sep 11, 2017

@michael-ciniawsky thanks, let me know if there is anything else I need to do to get this in 😃

@michael-ciniawsky
Copy link
Contributor

michael-ciniawsky commented Sep 12, 2017

@vinteo You need to sign the CLA please, close and reopen the PR to trigger the CLA Bot again

@vinteo
Copy link
Contributor Author

vinteo commented Sep 12, 2017

@michael-ciniawsky I have signed it, its the travis that's not triggering or am I missing something?

@vinteo vinteo closed this Sep 12, 2017
@vinteo vinteo reopened this Sep 12, 2017
@michael-ciniawsky
Copy link
Contributor

😅 Yeah... my bad all good 👍

Copy link
Collaborator

@alexander-akait alexander-akait left a 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)?

@vinteo
Copy link
Contributor Author

vinteo commented Sep 12, 2017

@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

Copy link
Collaborator

@alexander-akait alexander-akait left a 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'
Copy link
Collaborator

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.

Copy link
Contributor Author

@vinteo vinteo Sep 13, 2017

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?

Copy link
Collaborator

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 👍

@joshwiens
Copy link
Contributor

@vinteo - Can you rebase in latest master when you have a moment, solves the issue with Travis not running PRs

@vinteo
Copy link
Contributor Author

vinteo commented Oct 5, 2017

@d3viant0ne done! 😃

@joshwiens
Copy link
Contributor

Thanks :)

@joshwiens joshwiens merged commit 466581f into codymikol:master Oct 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ModuleNotFoundError not being handled
5 participants