]> git.openstreetmap.org Git - rails.git/commitdiff
Use utility method for error reporting.
authorMatt Amos <zerebubuth@gmail.com>
Thu, 21 May 2009 14:55:25 +0000 (14:55 +0000)
committerMatt Amos <zerebubuth@gmail.com>
Thu, 21 May 2009 14:55:25 +0000 (14:55 +0000)
app/controllers/application.rb

index 2f8bd776dd71c22e1e40e5ab05e628126117bf03..6c6ffacb25396f80113b60e68a6c38a3477292a7 100644 (file)
@@ -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