(p errbase.Printer)
| 561 | func (e *werrFmt) Unwrap() error { return e.cause } |
| 562 | func (e *werrFmt) Format(s fmt.State, verb rune) { errbase.FormatError(e, s, verb) } |
| 563 | func (e *werrFmt) FormatError(p errbase.Printer) error { |
| 564 | p.Print(e.msg) |
| 565 | if p.Detail() { |
| 566 | p.Printf("-- this is %s's\nmulti-line wrapper payload", e.msg) |
| 567 | } |
| 568 | return e.cause |
| 569 | } |
| 570 | |
| 571 | func flags(s fmt.State) string { |
| 572 | flags := "" |