(p errbase.Printer)
| 711 | func (e *werrFmt) Unwrap() error { return e.cause } |
| 712 | func (e *werrFmt) Format(s fmt.State, verb rune) { errbase.FormatError(e, s, verb) } |
| 713 | func (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 | |
| 721 | func TestInvalidError(t *testing.T) { |
| 722 | tt := testutils.T{T: t} |