validation: fix undefined: errors.InvalidArgumentD

Signed-off-by: Adphi <philippe.adrien.nousse@gmail.com>
This commit is contained in:
Adphi 2022-05-04 16:30:27 +02:00
parent 01eb1bddea
commit e5a45801a1
Signed by: adphi
GPG Key ID: 46BE4062DB2397FF

View File

@ -52,7 +52,7 @@ func errToStatus(err error) error {
} }
switch v := err.(type) { switch v := err.(type) {
case validatorError: case validatorError:
return errors.InvalidArgumentD(err, validatorErrorToGrpc(v)) return errors.InvalidArgumentd(err, validatorErrorToGrpc(v))
case validatorMultiError: case validatorMultiError:
var details []proto.Message var details []proto.Message
for _, v := range v.AllErrors() { for _, v := range v.AllErrors() {