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

Method Format

safedetails/safedetails_test.go:302–302  ·  view source on GitHub ↗
(s fmt.State, verb rune)

Source from the content-addressed store, hash-verified

300func (e *werrFmt) Error() string { return fmt.Sprintf("%s: %v", e.msg, e.cause) }
301func (e *werrFmt) Unwrap() error { return e.cause }
302func (e *werrFmt) Format(s fmt.State, verb rune) { errbase.FormatError(e, s, verb) }
303func (e *werrFmt) SafeFormatError(p errbase.Printer) error {
304 p.Print(e.msg)
305 if p.Detail() {

Callers

nothing calls this directly

Calls 1

FormatErrorFunction · 0.92

Tested by

no test coverage detected