(_ context.Context, err error)
| 32 | } |
| 33 | |
| 34 | func encodeLeaf(_ context.Context, err error) (string, []string, proto.Message) { |
| 35 | l := err.(*leafError) |
| 36 | return l.Error(), l.SafeDetails(), &errorspb.StringPayload{Msg: string(l.msg)} |
| 37 | } |
| 38 | |
| 39 | func decodeLeaf(_ context.Context, _ string, _ []string, payload proto.Message) error { |
| 40 | m, ok := payload.(*errorspb.StringPayload) |
nothing calls this directly
no test coverage detected
searching dependent graphs…