#121 √ resolved
coryodaniel(midget_nuts|codaniel)

Hide internal server errors in particular environments

Reported by coryodaniel(midget_nuts|codaniel) | April 30th, 2008 @ 04:30 PM | in 0.9

Just a patch to hide internal server errors (couldn't find any documentation on how to do this with the flip of a switch)

Merb::Config[:hide_internal_server_errors] = true

Comments and changes to this ticket

  • Michael Klishin (antares)

    Michael Klishin (antares) May 3rd, 2008 @ 08:36 PM

    Why developer would like to hide internal server error when (s)he can show up a nice 500 page?

  • Michael Klishin (antares)

    Michael Klishin (antares) May 3rd, 2008 @ 08:41 PM

      • → Assigned user changed from “” to “Michael Klishin (antares)”
      • → State changed from “new” to “invalid”
      • → Milestone changed from “” to “1.0”

    Closing it as invalid. Thanks for your time and effort though!

  • Ezra Zygmuntowicz

    Ezra Zygmuntowicz May 3rd, 2008 @ 08:55 PM

      • → Assigned user cleared.
      • → State changed from “invalid” to “resolved”
      • → Milestone changed from “1.0” to “0.9”

    Yeah i don' want to add this special case. Since the exceptions controller is in your app feel free to do this to yoru local copy. Thats why we have a flexible error system.

  • coryodaniel(midget_nuts|codaniel)

    coryodaniel(midget_nuts|codaniel) May 5th, 2008 @ 01:43 PM

      • → Assigned user changed from “” to “Michael Klishin (antares)”

    The patch shows a 500 page instead of a backtrace. So you can set you a particular environment to hide the backtrace, maybe I gave a bad ticket name. I couldn't find a way to do this based on the environment, thats why I made the patch.

    As a developer, I dont believe Id want a backtrace showing up on production.

  • coryodaniel(midget_nuts|codaniel)

    coryodaniel(midget_nuts|codaniel) May 7th, 2008 @ 01:55 PM

    I didnt realize there was a MerbConfig for :exception_details.

    That renders this null n void. Sorry I'll read more documentation next time ;)

  • Ezra Zygmuntowicz

    Ezra Zygmuntowicz May 7th, 2008 @ 02:17 PM

      • → Assigned user changed from “Michael Klishin (antares)” to “Ezra Zygmuntowicz”

Please Login or create a free account to add a new comment.

You can update this ticket by sending an email to from your email client. (help)

Create your profile

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

Shared Ticket Bins