lib/csv2hash/structure_validator.rb in csv2hash-0.3.0 vs lib/csv2hash/structure_validator.rb in csv2hash-0.4.0
- old
+ new
@@ -7,10 +7,10 @@
definition.structure_rules.each do |rule, options|
begin
rule_instance(rule, options).validate! data_source
rescue => e
self.errors << { y: nil, x: nil, message: e.message, key: nil }
- raise if exception_mode
+ raise if break_on_failure
end
end
end
def rule_instance rule, options