From bf09940a55c353fe0b6b2f346e024a70e90837cb Mon Sep 17 00:00:00 2001 From: evazion Date: Thu, 31 Dec 2020 02:00:31 -0600 Subject: [PATCH] debug mode: re-raise exceptions in controller. Fixes exception information not reaching the console during failed controller tests. --- app/controllers/application_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index ad4f918b0..af1317760 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -88,7 +88,7 @@ class ApplicationController < ActionController::Base end def rescue_exception(exception) - return if Danbooru.config.debug_mode + raise exception if Danbooru.config.debug_mode case exception when ActionView::Template::Error