MCPcopy Create free account
hub / github.com/cockroachdb/errors / encodeLeaf

Function encodeLeaf

errutil/redactable.go:34–37  ·  view source on GitHub ↗
(_ context.Context, err error)

Source from the content-addressed store, hash-verified

32}
33
34func 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
39func decodeLeaf(_ context.Context, _ string, _ []string, payload proto.Message) error {
40 m, ok := payload.(*errorspb.StringPayload)

Callers

nothing calls this directly

Calls 2

SafeDetailsMethod · 0.65
ErrorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…