From 679cf413ab18b7828b3c2da741d69121d83db0d5 Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Thu, 11 Jan 2018 12:29:52 +0000 Subject: [PATCH] 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 --- app/controllers/application_controller.rb | 4 ++-- 1 file 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