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

Method SafeFormatError

domains/with_domain.go:62–67  ·  view source on GitHub ↗
(p errbase.Printer)

Source from the content-addressed store, hash-verified

60func (e *withDomain) Format(s fmt.State, verb rune) { errbase.FormatError(e, s, verb) }
61
62func (e *withDomain) SafeFormatError(p errbase.Printer) error {
63 if p.Detail() {
64 p.Print(redact.Safe(e.domain))
65 }
66 return e.cause
67}
68
69// A domain-annotated error is decoded exactly.
70func decodeWithDomain(

Callers

nothing calls this directly

Calls 2

DetailMethod · 0.65
PrintMethod · 0.65

Tested by

no test coverage detected