From: Matt Amos Date: Thu, 21 May 2009 14:55:25 +0000 (+0000) Subject: Use utility method for error reporting. X-Git-Tag: live~7376 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/94c89838d4e7f3c767cea5f20709c52e1b8e4816 Use utility method for error reporting. --- diff --git a/app/controllers/application.rb b/app/controllers/application.rb index 2f8bd776d..6c6ffacb2 100644 --- a/app/controllers/application.rb +++ b/app/controllers/application.rb @@ -116,7 +116,7 @@ class ApplicationController < ActionController::Base render_opts = ex.render_opts report_error render_opts[:text], render_opts[:status] rescue Exception => ex - render :text => "#{ex.class}: #{ex.message}", :status => :internal_server_error + report_error "#{ex.class}: #{ex.message}", :internal_server_error end end