Handle UnmarshalText error

This commit is contained in:
Crow Crowcrow 2022-06-02 14:05:57 +02:00
parent 1b29fa463b
commit f63a21e1be
Signed by untrusted user: Crow
GPG Key ID: 45A8E203AF859FD8

View File

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