Skip to content

Commit 4af3707

Browse files
committed
Shush the backtrace_locations, too
1 parent 046d50a commit 4af3707

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/spring/application.rb

+2
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,7 @@ def shush_backtraces
320320
if $!
321321
lib = File.expand_path("..", __FILE__)
322322
$!.backtrace.reject! { |line| line.start_with?(lib) } unless $!.backtrace.frozen?
323+
$!.backtrace_locations.reject! { |line| line.path&.start_with?(lib) } unless $!.backtrace_locations.frozen?
323324
end
324325
end
325326
end
@@ -331,6 +332,7 @@ def shush_backtraces
331332
if $!
332333
lib = File.expand_path("..", __FILE__)
333334
$!.backtrace.reject! { |line| line.start_with?(lib) } unless $!.backtrace.frozen?
335+
$!.backtrace_locations.reject! { |line| line.path&.start_with?(lib) } unless $!.backtrace_locations.frozen?
334336
end
335337
end
336338
end

0 commit comments

Comments
 (0)