(p errbase.Printer)
| 158 | func (e *werrFmt) Unwrap() error { return e.cause } |
| 159 | func (e *werrFmt) Format(s fmt.State, verb rune) { errbase.FormatError(e, s, verb) } |
| 160 | func (e *werrFmt) FormatError(p errbase.Printer) error { |
| 161 | p.Print(e.msg) |
| 162 | if p.Detail() { |
| 163 | p.Printf("-- this is %s's\nmulti-line payload", e.msg) |
| 164 | } |
| 165 | return e.cause |
| 166 | } |