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

Method FormatError

errutil/message_test.go:216–222  ·  view source on GitHub ↗
(p errbase.Printer)

Source from the content-addressed store, hash-verified

214func (e *werrFmt) Unwrap() error { return e.cause }
215func (e *werrFmt) Format(s fmt.State, verb rune) { errbase.FormatError(e, s, verb) }
216func (e *werrFmt) FormatError(p errbase.Printer) error {
217 p.Print(e.msg)
218 if p.Detail() {
219 p.Printf("-- this is %s's\nmulti-line payload", e.msg)
220 }
221 return e.cause
222}
223
224var emptyString = ""

Callers

nothing calls this directly

Calls 3

PrintMethod · 0.65
DetailMethod · 0.65
PrintfMethod · 0.65

Tested by

no test coverage detected