Skip to content

Handled Sinatra exceptions still captured #1748

Closed
@baelter

Description

@baelter

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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions