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 2f8bd77..6c6ffac 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