Wrapping the cause should do the "SyntaxError" magic
This commit is contained in:
parent
bff868d56f
commit
894acf9588
@ -46,10 +46,10 @@ class ExceptionWrapper
|
||||
def initialize(backtrace_cleaner, exception)
|
||||
@backtrace_cleaner = backtrace_cleaner
|
||||
@exception = exception
|
||||
@exception_class_name = @exception.class.name
|
||||
@exception_class_name = exception.class.name
|
||||
@wrapped_causes = wrapped_causes_for(exception, backtrace_cleaner)
|
||||
|
||||
expand_backtrace if exception.is_a?(SyntaxError) || exception.cause.is_a?(SyntaxError)
|
||||
expand_backtrace if exception.is_a?(SyntaxError)
|
||||
end
|
||||
|
||||
def routing_error?
|
||||
|
Loading…
Reference in New Issue
Block a user