Skip to content
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

railtie: insert our Rails middleware before Rails' one #418

Closed
wants to merge 1 commit into from

Commits on Sep 14, 2015

  1. railtie: insert our Rails middleware before Rails' one

    Fixes #401 (Track 404 with airbrake)
    
    > The ActionDispatch::ShowExceptions middleware rescues any exception
    > returned by the application and renders nice exception pages if the
    > request is local or if config.consider_all_requests_local is set to
    > true. If config.action_dispatch.show_exceptions is set to false,
    > exceptions will be raised regardless.
    
    Changing the order of middleware allows us to rescue the exception
    coming from the Rails middleware. Please note that [we still ignore some
    exceptions][1] such as ActionController::RoutingError, which we are able
    to catch now.
    
    [1]: https://github.com/airbrake/airbrake/blob/02d29ccde1c46f957c9cf8261835ec7f9386e041/lib/airbrake/configuration.rb#L146
    kyrylo committed Sep 14, 2015
    Copy the full SHA
    5645549 View commit details
    Browse the repository at this point in the history