Return UnmarshalText error #2

Merged
NiseVoid merged 1 commits from Crow/forms:handle_unmarshaler_error into master 2022-06-02 14:16:10 +02:00
Showing only changes of commit f63a21e1be - Show all commits

View File

@ -48,7 +48,11 @@ func decode(form Values, rv reflect.Value, prefix string) error {
continue
}
tu.UnmarshalText([]byte(v[0]))
err := tu.UnmarshalText([]byte(v[0]))
if err != nil {
return err
}
continue
}