debug mode: re-raise exceptions in controller.

Fixes exception information not reaching the console during failed
controller tests.
This commit is contained in:
evazion
2020-12-31 06:50:10 -06:00
parent ae5c0d1034
commit bf09940a55
+1 -1
View File
@@ -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