Skip to content

Commit 0b76afc

Browse files
committed
Make MismatchError a base Exception
This allows mismatches to avoid being caught by bare rescue's which should help make them more visible in the face of code which chooses to use such a general rescue strategy.
1 parent 3463724 commit 0b76afc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/scientist/experiment.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def self.new(name)
1818
end
1919

2020
# A mismatch, raised when raise_on_mismatches is enabled.
21-
class MismatchError < StandardError
21+
class MismatchError < Exception
2222
attr_reader :name, :result
2323

2424
def initialize(name, result)

0 commit comments

Comments
 (0)