mirror of
https://github.com/linka-cloud/grpc.git
synced 2024-11-22 02:46:25 +00:00
validation: fix undefined: errors.InvalidArgumentD
Signed-off-by: Adphi <philippe.adrien.nousse@gmail.com>
This commit is contained in:
parent
01eb1bddea
commit
e5a45801a1
@ -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() {
|
||||||
|
Loading…
Reference in New Issue
Block a user