Skip to content

Commit 56ca3f5

Browse files
committed
Show a warning for the case where coverage for eval is unavailable
... instead of raising an exception
1 parent 71c4057 commit 56ca3f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/simplecov/configuration.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ def enable_coverage_for_eval
457457
if coverage_for_eval_supported?
458458
@coverage_for_eval_enabled = true
459459
else
460-
raise "Coverage for eval is not available! Use Ruby 3.2.0 or later"
460+
warn "Coverage for eval is not available; Use Ruby 3.2.0 or later"
461461
end
462462
end
463463

0 commit comments

Comments
 (0)