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
res.error
res.err
Error
Populated with useful debugging information:
type
'socket'
'http'
text
url
status
headers
Example use case in Express:
request.get('/', function(res){ // no wrapping needed that usually drops context if (res.err) return next(res.err); });
Goals:
500
next
console.log
err, res
res.err, res
The text was updated successfully, but these errors were encountered:
+1
Sorry, something went wrong.
+1 I forgot they're all bools anyway so it might as well be something useful
ec98c8a
we could add err.request = this though potentially leaking memory pretty bad
err.request = this
No branches or pull requests
Populated with useful debugging information:
type
('socket'
or'http'
)text
(body)url
status
headers
Example use case in Express:
Goals:
500
status) errors elegantly, but still flexible.next
ing,console.log
ing, or passing around to handlers that already interpretError
objectserr, res
signatures would getres.err, res
The text was updated successfully, but these errors were encountered: