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

Method Format

errutil/message_test.go:215–215  ·  view source on GitHub ↗
(s fmt.State, verb rune)

Source from the content-addressed store, hash-verified

213func (e *werrFmt) Error() string { return fmt.Sprintf("%s: %v", e.msg, e.cause) }
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() {

Callers

nothing calls this directly

Calls 1

FormatErrorFunction · 0.92

Tested by

no test coverage detected