debug mode: re-raise exceptions in controller.
Fixes exception information not reaching the console during failed controller tests.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user