Unwrap returns the underlying error.
()
| 27 | |
| 28 | // Unwrap returns the underlying error. |
| 29 | func (e *DisplayError) Unwrap() error { |
| 30 | if e == nil { |
| 31 | return nil |
| 32 | } |
| 33 | return e.Err |
| 34 | } |
| 35 | |
| 36 | // NewDisplayError builds an error that carries ErrorExit rendering options. |
| 37 | func NewDisplayError(err error, showMsg bool, showColor bool, pause bool) error { |
no outgoing calls