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

Don't swallow errors in makenode.js #31

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

gobengo
Copy link
Contributor

@gobengo gobengo commented Jul 5, 2018

Today @squeeesh and @eenblam and I were setting up an n600. We got a cryptic-ish error from makenode and had to look into the code to diagnose.

There are two things this PR does to make it easier to triage errors in the future

  • Fix a couple places in async functions where the error object wasn't getting passed to callback
  • Don't pass strings to error callbacks. Strings don't have useful stack traces. Error objects do.

@gobengo gobengo requested a review from eenblam July 5, 2018 18:37
@bennlich
Copy link
Contributor

bennlich commented Jul 5, 2018

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants