We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Throwing a string doesn't include a stack trace in Node.js. This made it harder for me to figure out which code was going awry.
The solution is just to throw new Error() on that same string. I have a PR.
new Error()
The text was updated successfully, but these errors were encountered:
Fixes for issues deanm#24, deanm#25, deanm#26.
c84c866
Throw Errors instead of strings. Issue #26.
d0e308f
Throwing Error objects instead of raw strings is apparently the recommended practice and should give better stack traces, etc.
No branches or pull requests
Throwing a string doesn't include a stack trace in Node.js. This made it harder for me to figure out which code was going awry.
The solution is just to throw
new Error()
on that same string. I have a PR.The text was updated successfully, but these errors were encountered: