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 02:00:31 -06:00
parent ae5c0d1034
commit bf09940a55

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