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

Method FormatError

markers/markers_test.go:713–719  ·  view source on GitHub ↗
(p errbase.Printer)

Source from the content-addressed store, hash-verified

711func (e *werrFmt) Unwrap() error { return e.cause }
712func (e *werrFmt) Format(s fmt.State, verb rune) { errbase.FormatError(e, s, verb) }
713func (e *werrFmt) FormatError(p errbase.Printer) error {
714 p.Print(e.msg)
715 if p.Detail() {
716 p.Printf("-- this is %s's\nmulti-line payload", e.msg)
717 }
718 return e.cause
719}
720
721func TestInvalidError(t *testing.T) {
722 tt := testutils.T{T: t}

Callers

nothing calls this directly

Calls 3

PrintMethod · 0.65
DetailMethod · 0.65
PrintfMethod · 0.65

Tested by

no test coverage detected