Skip to content

Commit ae6e2a8

Browse files
committed
Avoid trying to mutate frozen backtraces
Closes #609.
1 parent 4ae1afd commit ae6e2a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/spring/application.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ def shush_backtraces
304304
ensure
305305
if $!
306306
lib = File.expand_path("..", __FILE__)
307-
$!.backtrace.reject! { |line| line.start_with?(lib) }
307+
$!.backtrace.reject! { |line| line.start_with?(lib) } unless $!.backtrace.frozen?
308308
end
309309
end
310310
end

0 commit comments

Comments
 (0)