projects
/
rails.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0d5136c
)
Use utility method for error reporting.
author
Matt Amos
<zerebubuth@gmail.com>
Thu, 21 May 2009 14:55:25 +0000
(14:55 +0000)
committer
Matt Amos
<zerebubuth@gmail.com>
Thu, 21 May 2009 14:55:25 +0000
(14:55 +0000)
app/controllers/application.rb
patch
|
blob
|
history
diff --git
a/app/controllers/application.rb
b/app/controllers/application.rb
index 2f8bd776dd71c22e1e40e5ab05e628126117bf03..6c6ffacb25396f80113b60e68a6c38a3477292a7 100644
(file)
--- 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
- re
nder :text => "#{ex.class}: #{ex.message}", :status =>
:internal_server_error
+ re
port_error "#{ex.class}: #{ex.message}",
:internal_server_error
end
end