Wrapping the cause should do the "SyntaxError" magic

This commit is contained in:
Aaron Patterson 2022-09-27 09:43:15 -07:00
parent bff868d56f
commit 894acf9588
No known key found for this signature in database
GPG Key ID: 953170BCB4FFAFC6

@ -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?