lib/csv2hash/validator.rb in csv2hash-0.3.0 vs lib/csv2hash/validator.rb in csv2hash-0.4.0

- old
+ new

@@ -6,10 +6,10 @@ _y, x = position rule.fetch(:position) begin validate_cell (_y||y), x, rule rescue => e self.errors << { y: (_y||y), x: x, message: e.message, key: rule.fetch(:key) } - raise if exception_mode + raise if break_on_failure end end end def valid?() self.errors.empty?; end