allow to transfer *status.Status as error from handler

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
2022-04-06 18:37:00 +03:00
parent adf9a0d82d
commit 8e88abbbca
3 changed files with 30 additions and 9 deletions

View File

@@ -425,6 +425,8 @@ func (g *grpcServer) processRequest(ctx context.Context, stream grpc.ServerStrea
if err != nil {
return err
}
case (interface{ GRPCStatus() *status.Status }):
errStatus = verr.GRPCStatus()
default:
g.RLock()
config := g.opts