Skip to content

Commit 50c11b8

Browse files
committed
protovalidate: CEL evaluation error is an Internal error
1 parent 69beab3 commit 50c11b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

interceptors/protovalidate/protovalidate.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,5 +88,5 @@ func validateMsg(m interface{}, validator *protovalidate.Validator, opts *option
8888
return ds.Err()
8989
}
9090
// CEL expression doesn't compile or type-check.
91-
return status.Error(codes.Unknown, err.Error())
91+
return status.Error(codes.Internal, err.Error())
9292
}

0 commit comments

Comments
 (0)