go-grpc-middleware icon indicating copy to clipboard operation
go-grpc-middleware copied to clipboard

[validator] Let me customize the error code

Open jinleileiking opened this issue 8 years ago • 1 comments

				return nil, grpc.Errorf(codes.InvalidArgument, err.Error())

I want to not use codes.InvalidArgument =3, so give me a opt to let me choose what errcode to return

jinleileiking avatar Jul 17 '17 08:07 jinleileiking

Happy to accept a PR that introduces an option to it.

mwitkow avatar Aug 25 '17 07:08 mwitkow

This is pretty old and we know have v2 code with different structure. Let us know if this is still important, we can reopen.

bwplotka avatar Mar 19 '23 01:03 bwplotka