From 504418ad93efd32e2f1d3fab7444188631de290f Mon Sep 17 00:00:00 2001 From: Mikhail Mazurskiy Date: Wed, 14 Aug 2024 21:12:32 +1000 Subject: [PATCH] protovalidate: CEL evaluation error is an Internal error --- interceptors/protovalidate/protovalidate.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interceptors/protovalidate/protovalidate.go b/interceptors/protovalidate/protovalidate.go index 40d71739..5ebfc3e5 100644 --- a/interceptors/protovalidate/protovalidate.go +++ b/interceptors/protovalidate/protovalidate.go @@ -93,5 +93,5 @@ func validateMsg(m interface{}, validator Validator, opts *options) error { return ds.Err() } // CEL expression doesn't compile or type-check. - return status.Error(codes.Unknown, err.Error()) + return status.Error(codes.Internal, err.Error()) }