diff --git a/errors/errors.go b/errors/errors.go index 342d4bd80291..0dedd4268874 100644 --- a/errors/errors.go +++ b/errors/errors.go @@ -244,6 +244,7 @@ func (e *wrappedError) Unwrap() error { return e.parent } +// GRPCStatus gets the gRPC status from the wrapped error or returns an unknown gRPC status. func (e *wrappedError) GRPCStatus() *grpcstatus.Status { w := e.Cause() for {