summaryrefslogtreecommitdiffstats
path: root/app/controllers/application_controller.rb
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2018-01-11 12:29:52 +0000
committerGo MAEDA <maeda@farend.jp>2018-01-11 12:29:52 +0000
commit679cf413ab18b7828b3c2da741d69121d83db0d5 (patch)
treede937c3055297d6047f74e40c6e6f38b60372190 /app/controllers/application_controller.rb
parente4142a833884205050309d4141e28c1b3bb1fe8c (diff)
downloadredmine-679cf413ab18b7828b3c2da741d69121d83db0d5.tar.gz
redmine-679cf413ab18b7828b3c2da741d69121d83db0d5.zip
Log exception's message when ActionView::MissingTemplate is raised (#26341).
Patch by Vincent Robert. git-svn-id: http://svn.redmine.org/redmine/trunk@17174 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/application_controller.rb')
-rw-r--r--app/controllers/application_controller.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb
index a05f54077..a71103a89 100644
--- a/app/controllers/application_controller.rb
+++ b/app/controllers/application_controller.rb
@@ -502,8 +502,8 @@ class ApplicationController < ActionController::Base
end
# Handler for ActionView::MissingTemplate exception
- def missing_template
- logger.warn "Missing template, responding with 404"
+ def missing_template(exception)
+ logger.warn "Missing template, responding with 404: #{exception}"
@project = nil
render_404
end