File tree 1 file changed +8
-2
lines changed
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -319,7 +319,10 @@ def shush_backtraces
319
319
ensure
320
320
if $!
321
321
lib = File . expand_path ( ".." , __FILE__ )
322
- $!. backtrace . reject! { |line | line . start_with? ( lib ) } unless $!. backtrace . frozen?
322
+ unless $!. backtrace . frozen?
323
+ $!. backtrace . reject! { |line | line . start_with? ( lib ) }
324
+ $!. backtrace_locations . reject! { |line | line . path . start_with? ( lib ) }
325
+ end
323
326
end
324
327
end
325
328
end
@@ -330,7 +333,10 @@ def shush_backtraces
330
333
ensure
331
334
if $!
332
335
lib = File . expand_path ( ".." , __FILE__ )
333
- $!. backtrace . reject! { |line | line . start_with? ( lib ) } unless $!. backtrace . frozen?
336
+ unless $!. backtrace . frozen?
337
+ $!. backtrace . reject! { |line | line . start_with? ( lib ) }
338
+ $!. backtrace_locations . reject! { |line | line . path . start_with? ( lib ) }
339
+ end
334
340
end
335
341
end
336
342
end
You can’t perform that action at this time.
0 commit comments