toGRPCStatus converts a Kratos *errors.Error into a *status.Status the same way it would travel over the wire: Kratos Error -> GRPCStatus() -> gRPC Status.
(err *kratosErrors.Error)
| 29 | // toGRPCStatus converts a Kratos *errors.Error into a *status.Status the same |
| 30 | // way it would travel over the wire: Kratos Error -> GRPCStatus() -> gRPC Status. |
| 31 | func toGRPCStatus(err *kratosErrors.Error) *status.Status { |
| 32 | return err.GRPCStatus() |
| 33 | } |
| 34 | |
| 35 | func TestIsWrappedErr(t *testing.T) { |
| 36 | tests := []struct { |
no test coverage detected