|
|
@ -3,7 +3,6 @@ require 'action_dispatch/routing/inspector' |
|
|
|
require 'action_view' |
|
|
|
|
|
|
|
module ActionDispatch |
|
|
|
module Middleware |
|
|
|
# THIS IS A HACK TO unwrap TagWrapError when detected! |
|
|
|
# TagWrapError contains a 'tag' for SemanticLogger and the cause itself |
|
|
|
class DebugExceptions |
|
|
@ -11,6 +10,7 @@ module ActionDispatch |
|
|
|
|
|
|
|
def render_exception(request, exception, wrapper) |
|
|
|
## PVINCENT's ADDITION for TagWrapError |
|
|
|
|
|
|
|
log_error(request, wrapper) |
|
|
|
if exception.is_a?(Semantic::TagWrapError) |
|
|
|
backtrace_cleaner = request.get_header('action_dispatch.backtrace_cleaner') |
|
|
@ -34,5 +34,4 @@ module ActionDispatch |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
end |