-
Notifications
You must be signed in to change notification settings - Fork 394
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
Possibly broken app.error #239
Labels
bug
M-T: confirmed bug report. Issues are confirmed when the reproduction steps are documented
Comments
shaydewael
added
the
bug
M-T: confirmed bug report. Issues are confirmed when the reproduction steps are documented
label
Oct 1, 2019
3 tasks
@stevengill @aoberoi My understanding is that this issue has been resolved by v2 release. Can we close this issue now? |
I agree! I just created a label for |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
bug
M-T: confirmed bug report. Issues are confirmed when the reproduction steps are documented
Description
I'm having difficulties with using custom error handlers. Maybe I didn't understand the documentation right. Please take a look at the code snippets below.
This is my setup:
None of these messages passes the execution flow to the error handler. What I'm doing wrong?
I suspect that customizing
this.on('error', ...)
in ExpressReceiver may help to get desirable results (customizable error handler), but why do we needapp.error(...)
then?What type of issue is this? (place an
x
in one of the[ ]
)Requirements (place an
x
in each of the[ ]
)Bug Report
Filling out the following details about bugs will help us solve your issue sooner.
Reproducible in:
package version: 1.2.0
node version: 12.6.0
OS version(s): macOS Mojave 10.14.5
Steps to reproduce:
Expected result:
I'm expecting
app.error
to catch all unhandled errors and errors fromnext()
function. (I could be wrong about some details regarding error handling in Bolt).Actual result:
It's impossible to get into the handler which you passed into
app.error(...)
.Attachments:
The text was updated successfully, but these errors were encountered: