Skip to content

Commit

Permalink
Fix InvalidValue error for arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
erdnaxeli committed Apr 9, 2021
1 parent 5203735 commit 5b60166
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/clip/mapper.cr
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ module Clip::Mapper
@{{ivar.id}} = {{ivar.type.id}}.new(value)
{% end %}
rescue ArgumentError
options_errors[{{ivar.stringify}}] = Clip::Errors::InvalidValue
arguments_errors[{{ivar.stringify}}] = Clip::Errors::InvalidValue
end
{% end %}
{% if ivar.type < Array || ivar.type.union_types.all? { |x| x == Nil || x < Array } %}
Expand Down

0 comments on commit 5b60166

Please # to comment.