From 94c89838d4e7f3c767cea5f20709c52e1b8e4816 Mon Sep 17 00:00:00 2001 From: Matt Amos Date: Thu, 21 May 2009 14:55:25 +0000 Subject: [PATCH] Use utility method for error reporting. --- app/controllers/application.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.43.2