1
0
mirror of https://github.com/meineerde/redmine.git synced 2025-12-19 15:01:14 +00:00

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
This commit is contained in:
Go MAEDA 2018-01-11 12:29:52 +00:00
parent e4142a8338
commit 679cf413ab

View File

@ -502,8 +502,8 @@ class ApplicationController < ActionController::Base
end end
# Handler for ActionView::MissingTemplate exception # Handler for ActionView::MissingTemplate exception
def missing_template def missing_template(exception)
logger.warn "Missing template, responding with 404" logger.warn "Missing template, responding with 404: #{exception}"
@project = nil @project = nil
render_404 render_404
end end