-
Notifications
You must be signed in to change notification settings - Fork 30
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
Take in Error object and automatically find message #29
Labels
Milestone
Comments
Once 5.x lands this will become the default behavior, as all errors created by restify-errors inherit from VError. |
Great, any idea when |
Oops - really sorry for not following up on this thread. I may have been confused, and thought you were asking about restify 4.x. Are you basically wanting to create a new error, re-using only the error message itself but without creating a cause chain? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Should be able to just pass an
Error
object and automatically fetch the error message from theError
object.For example:
Instead of (currently):
The text was updated successfully, but these errors were encountered: