Skip to content

Commit

Permalink
protovalidate: CEL evaluation error is an Internal error
Browse files Browse the repository at this point in the history
  • Loading branch information
ash2k committed Aug 14, 2024
1 parent 930bd6d commit 504418a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion interceptors/protovalidate/protovalidate.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
}

0 comments on commit 504418a

Please sign in to comment.