MCPcopy Create free account
hub / github.com/cockroachdb/errors / FormatError

Method FormatError

issuelink/issuelink_test.go:160–166  ·  view source on GitHub ↗
(p errbase.Printer)

Source from the content-addressed store, hash-verified

158func (e *werrFmt) Unwrap() error { return e.cause }
159func (e *werrFmt) Format(s fmt.State, verb rune) { errbase.FormatError(e, s, verb) }
160func (e *werrFmt) FormatError(p errbase.Printer) error {
161 p.Print(e.msg)
162 if p.Detail() {
163 p.Printf("-- this is %s's\nmulti-line payload", e.msg)
164 }
165 return e.cause
166}

Callers

nothing calls this directly

Calls 3

PrintMethod · 0.65
DetailMethod · 0.65
PrintfMethod · 0.65

Tested by

no test coverage detected