show exception middleware accepts multiple apps #7804

wants to merge 2 commits into
Commits on Oct 7, 2012
Commits on Oct 9, 2012
  1. show exception middleware accepts multiple apps

    schneems committed Sep 30, 2012
    The show exception middleware allows developers to use custom error rendering apps. As error rendering applications become more complicated the chance for errors in the error rendering applications increases. By allowing multiple exception apps to be used instead of just one a developer can provide a fallback application. This provides a better experience for the end user and decreases the chances that the `FAILSAFE_RESPONSE` will be used.
    By default the public exception app will be put after any applications specified using `config.exceptions_app` in rails. This will provide a fallback in case an error is introduced by the exceptions_app.
    Errors from within exception_apps will still be shown in the logs for debugging.