(p errbase.Printer)
| 301 | func (e *werrFmt) Unwrap() error { return e.cause } |
| 302 | func (e *werrFmt) Format(s fmt.State, verb rune) { errbase.FormatError(e, s, verb) } |
| 303 | func (e *werrFmt) SafeFormatError(p errbase.Printer) error { |
| 304 | p.Print(e.msg) |
| 305 | if p.Detail() { |
| 306 | p.Printf("-- this is %s's\nmulti-line safe payload", e.msg) |
| 307 | } |
| 308 | return e.cause |
| 309 | } |