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

Method FormatError

assert/assert_test.go:136–142  ·  view source on GitHub ↗
(p errbase.Printer)

Source from the content-addressed store, hash-verified

134func (e *werrFmt) Unwrap() error { return e.cause }
135func (e *werrFmt) Format(s fmt.State, verb rune) { errbase.FormatError(e, s, verb) }
136func (e *werrFmt) FormatError(p errbase.Printer) error {
137 p.Print(e.msg)
138 if p.Detail() {
139 p.Printf("-- this is %s's\nmulti-line payload", e.msg)
140 }
141 return e.cause
142}

Callers

nothing calls this directly

Calls 3

PrintMethod · 0.65
DetailMethod · 0.65
PrintfMethod · 0.65

Tested by

no test coverage detected