lib/grape/validations/validators/coerce.rb in grape-1.3.0 vs lib/grape/validations/validators/coerce.rb in grape-1.3.1
- old
+ new
@@ -74,10 +74,10 @@
end
converter.call(val)
# Some custom types might fail, so it should be treated as an invalid value
- rescue
+ rescue StandardError
Types::InvalidValue.new
end
# Type to which the parameter will be coerced.
#