This project is archived and is in readonly mode.

#5784 ✓resolved
Les Hill

ShowExceptions renders original exceptions

Reported by Les Hill | October 11th, 2010 @ 04:14 PM

Current ShowExceptions middleware behavior is to use the wrapping exception to set the response. So all template errors are shown as 500's even when a 404 would be indicated from the wrapped exception.

This patch finds wrapped exceptions which have a response known to ShowExceptions and use that instead. If the wrapped exception is not known to ShowExceptions, the wrapping exception is used instead.

The original exception (i.e. the wrapping exception) continues to be logged.

Les Hill
Sandro Turriate

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

Attachments

Referenced by

Pages