cookie-cutter icon indicating copy to clipboard operation
cookie-cutter copied to clipboard

Support returning gRPC Error Codes from handlers

Open hamdio opened this issue 4 years ago • 0 comments

Currently when an error is thrown from a gRPC handler, GrpcInputSource treats the error as generic Error type and returns as UNKNOWN_ERROR. But grpc api has a richer error definition here. So it's better grpc input source to check error type returned from handler and use status code if exists.

hamdio avatar Nov 13 '20 09:11 hamdio