(p errbase.Printer)
| 208 | func (e *werrFmt) Unwrap() error { return e.cause } |
| 209 | func (e *werrFmt) Format(s fmt.State, verb rune) { errbase.FormatError(e, s, verb) } |
| 210 | func (e *werrFmt) FormatError(p errbase.Printer) error { |
| 211 | p.Print(e.msg) |
| 212 | if p.Detail() { |
| 213 | p.Printf("-- this is %s's\nmulti-line wrapper payload", e.msg) |
| 214 | } |
| 215 | return e.cause |
| 216 | } |