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

Method FormatError

fmttests/format_error_test.go:546–552  ·  view source on GitHub ↗
(p errbase.Printer)

Source from the content-addressed store, hash-verified

544func (e *errFmt) Error() string { return e.msg }
545func (e *errFmt) Format(s fmt.State, verb rune) { errbase.FormatError(e, s, verb) }
546func (e *errFmt) FormatError(p errbase.Printer) error {
547 p.Print(e.msg)
548 if p.Detail() {
549 p.Printf("-- this is %s's\nmulti-line leaf payload", e.msg)
550 }
551 return nil
552}
553
554// werrFmt is like errFmt but is a wrapper.
555type werrFmt struct {

Callers

nothing calls this directly

Calls 3

PrintMethod · 0.65
DetailMethod · 0.65
PrintfMethod · 0.65

Tested by

no test coverage detected