(p errbase.Printer)
| 252 | func (e *werrFmt) Unwrap() error { return e.cause } |
| 253 | func (e *werrFmt) Format(s fmt.State, verb rune) { errbase.FormatError(e, s, verb) } |
| 254 | func (e *werrFmt) FormatError(p errbase.Printer) error { |
| 255 | p.Print(e.msg) |
| 256 | if p.Detail() { |
| 257 | p.Printf("-- this is %s's\nmulti-line payload", e.msg) |
| 258 | } |
| 259 | return e.cause |
| 260 | } |