Closed
Description
Exceptions handled by Sinatra error blocks. eg.
error MyError do
halt 400, "yadayada"
end
are still captured by the Sentry Rack middleware.
I think there should at least be a way to disable this.
Looking at the code I think we need to add something to Sinatra so the Sentry middleware can determine if the error is handled or not. As of now env['sintra.error']
is still set for handled errors. Still opening an issue here first to see what your thoughts are on this.