lib/hyper-operation/railway/validations.rb in hyper-operation-0.5.9 vs lib/hyper-operation/railway/validations.rb in hyper-operation-0.5.10

- old
+ new

@@ -22,9 +22,10 @@ def add_error(param, symbol, message, *args, &block) add_validation do begin add_error(param, symbol, message) if instance_eval(&block) + true rescue Exit => e raise e unless e.state == :failed add_error(param, symbol, message) raise Exit.new(:abort_from_add_error, e.result) end