Currently, Merb just shows a string on error: "500 Internal Server Error"

I've added this to my merb_init.rb:

if MERB_ENV == 'production'
  module Merb
    def self.html_exception(e)
      File.read(DIST_ROOT + "/public/500.html")
    end
  end
end

http://nubyonrails.com/500.html

Potentially a plugin could be written to log this to the database.
However, I think the default in production should be to render a
500.html error page from the public directory. This allows for much
easier customization.

Objections?

Geoffrey Grosenbach
........................
Blog | http://nubyonrails.com
Podcast | http://podcast.rubyonrails.com
Screencast | http://peepcode.com
_______________________________________________
Merb-devel mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/merb-devel

Reply via email to