Use Kernel#abort for exception that cannot be triggered by bad input
This commit is contained in:
parent
b36348a1b8
commit
6658261686
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@ module Mutant
|
|||
output = Diff::LCS::Hunk.new(old, new, diffs.first, max_length, 0).diff(:unified)
|
||||
output << "\n"
|
||||
else
|
||||
raise 'Mutation resulted in more than one diff, should not happen!'
|
||||
abort 'Mutation resulted in more than one diff, should not happen! PLS report a bug!'
|
||||
end
|
||||
end
|
||||
memoize :diff
|
||||
|
|
Loading…
Reference in a new issue