MCPcopy Index your code
hub / github.com/cockroachdb/errors / SafeFormatError

Method SafeFormatError

issuelink/unimplemented_error.go:56–70  ·  view source on GitHub ↗
(p errbase.Printer)

Source from the content-addressed store, hash-verified

54func (w *unimplementedError) Format(s fmt.State, verb rune) { errbase.FormatError(w, s, verb) }
55
56func (w *unimplementedError) SafeFormatError(p errbase.Printer) error {
57 // For now, msg is non-reportable.
58 p.Print(w.msg)
59 if p.Detail() {
60 // But the details are.
61 p.Printf("unimplemented")
62 if w.IssueURL != "" {
63 p.Printf("\nissue: %s", redact.Safe(w.IssueURL))
64 }
65 if w.Detail != "" {
66 p.Printf("\ndetail: %s", redact.Safe(w.Detail))
67 }
68 }
69 return nil
70}
71
72func decodeUnimplementedError(
73 _ context.Context, msg string, details []string, _ proto.Message,

Callers

nothing calls this directly

Calls 3

PrintMethod · 0.65
DetailMethod · 0.65
PrintfMethod · 0.65

Tested by

no test coverage detected