From 976c0ec2e386d10dd3d87f8a28ff1449692579fb Mon Sep 17 00:00:00 2001 From: Cassandra Coyle Date: Tue, 12 Dec 2023 20:11:30 -0600 Subject: [PATCH] make GRPCStatus val receiver Signed-off-by: Cassandra Coyle --- errors/errors.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/errors/errors.go b/errors/errors.go index 0738653..fb501b9 100644 --- a/errors/errors.go +++ b/errors/errors.go @@ -108,7 +108,7 @@ func (e *Error) AddDetails(details ...proto.Message) *Error { /*** GRPC Methods ***/ // GRPCStatus returns the gRPC status.Status object. -func (e *Error) GRPCStatus() *status.Status { +func (e Error) GRPCStatus() *status.Status { stat := status.New(e.grpcCode, e.message) // convert details from proto.Msg -> protoiface.MsgV1