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