(p errbase.Printer)
| 224 | func (e *werrFmt) Unwrap() error { return e.cause } |
| 225 | func (e *werrFmt) Format(s fmt.State, verb rune) { errbase.FormatError(e, s, verb) } |
| 226 | func (e *werrFmt) FormatError(p errbase.Printer) error { |
| 227 | p.Print(e.msg) |
| 228 | if p.Detail() { |
| 229 | p.Printf("-- this is %s's\nmulti-line payload", e.msg) |
| 230 | } |
| 231 | return e.cause |
| 232 | } |