From 6658261686c2e6024e6baed9cd18138300db2636 Mon Sep 17 00:00:00 2001 From: Markus Schirp Date: Wed, 3 Jul 2013 00:18:20 +0200 Subject: [PATCH] Use Kernel#abort for exception that cannot be triggered by bad input --- lib/mutant/differ.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mutant/differ.rb b/lib/mutant/differ.rb index b77c5860..3bb13def 100644 --- a/lib/mutant/differ.rb +++ b/lib/mutant/differ.rb @@ -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