Skip to content

Commit

Permalink
Show a warning for the case where coverage for eval is unavailable
Browse files Browse the repository at this point in the history
... instead of raising an exception
  • Loading branch information
mame committed Dec 6, 2022
1 parent 71c4057 commit 56ca3f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/simplecov/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ def enable_coverage_for_eval
if coverage_for_eval_supported?
@coverage_for_eval_enabled = true
else
raise "Coverage for eval is not available! Use Ruby 3.2.0 or later"
warn "Coverage for eval is not available; Use Ruby 3.2.0 or later"
end
end

Expand Down

0 comments on commit 56ca3f5

Please sign in to comment.