(p errbase.Printer)
| 134 | func (e *werrFmt) Unwrap() error { return e.cause } |
| 135 | func (e *werrFmt) Format(s fmt.State, verb rune) { errbase.FormatError(e, s, verb) } |
| 136 | func (e *werrFmt) FormatError(p errbase.Printer) error { |
| 137 | p.Print(e.msg) |
| 138 | if p.Detail() { |
| 139 | p.Printf("-- this is %s's\nmulti-line payload", e.msg) |
| 140 | } |
| 141 | return e.cause |
| 142 | } |