(p errbase.Printer)
| 214 | func (e *werrFmt) Unwrap() error { return e.cause } |
| 215 | func (e *werrFmt) Format(s fmt.State, verb rune) { errbase.FormatError(e, s, verb) } |
| 216 | func (e *werrFmt) FormatError(p errbase.Printer) error { |
| 217 | p.Print(e.msg) |
| 218 | if p.Detail() { |
| 219 | p.Printf("-- this is %s's\nmulti-line payload", e.msg) |
| 220 | } |
| 221 | return e.cause |
| 222 | } |
| 223 | |
| 224 | var emptyString = "" |