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

Method SafeFormatError

safedetails/safedetails_test.go:303–309  ·  view source on GitHub ↗
(p errbase.Printer)

Source from the content-addressed store, hash-verified

301func (e *werrFmt) Unwrap() error { return e.cause }
302func (e *werrFmt) Format(s fmt.State, verb rune) { errbase.FormatError(e, s, verb) }
303func (e *werrFmt) SafeFormatError(p errbase.Printer) error {
304 p.Print(e.msg)
305 if p.Detail() {
306 p.Printf("-- this is %s's\nmulti-line safe payload", e.msg)
307 }
308 return e.cause
309}

Callers

nothing calls this directly

Calls 3

PrintMethod · 0.65
DetailMethod · 0.65
PrintfMethod · 0.65

Tested by

no test coverage detected