mirror of
https://github.com/redmine/redmine.git
synced 2026-01-18 13:33:04 +01: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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user