lib/usher/route/variable.rb in usher-0.7.5 vs lib/usher/route/variable.rb in usher-0.8.0

- old
+ new

@@ -10,10 +10,10 @@ module ProcValidator include Validator def valid!(val) begin - @validator.call(val) + @validator.call(val) or raise(ValidationException.new("#{val} does not conform to #{@validator}")) rescue Exception => e raise ValidationException.new("#{val} does not conform to #{@validator}, root cause #{e.inspect}") end end end \ No newline at end of file