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

Method FormatError

barriers/barriers_test.go:210–216  ·  view source on GitHub ↗
(p errbase.Printer)

Source from the content-addressed store, hash-verified

208func (e *werrFmt) Unwrap() error { return e.cause }
209func (e *werrFmt) Format(s fmt.State, verb rune) { errbase.FormatError(e, s, verb) }
210func (e *werrFmt) FormatError(p errbase.Printer) error {
211 p.Print(e.msg)
212 if p.Detail() {
213 p.Printf("-- this is %s's\nmulti-line wrapper payload", e.msg)
214 }
215 return e.cause
216}

Callers

nothing calls this directly

Calls 3

PrintMethod · 0.65
DetailMethod · 0.65
PrintfMethod · 0.65

Tested by

no test coverage detected