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

Method Format

barriers/barriers_test.go:209–209  ·  view source on GitHub ↗
(s fmt.State, verb rune)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

FormatErrorFunction · 0.92

Tested by

no test coverage detected