Error implements the error interface.
()
| 30 | |
| 31 | // Error implements the error interface. |
| 32 | func (e *bdError) Error() string { |
| 33 | if e.Stderr != "" { |
| 34 | return e.Stderr |
| 35 | } |
| 36 | if e.Err != nil { |
| 37 | return e.Err.Error() |
| 38 | } |
| 39 | return "unknown bd error" |
| 40 | } |
| 41 | |
| 42 | // Unwrap returns the underlying error for errors.Is/As compatibility. |
| 43 | func (e *bdError) Unwrap() error { |
no outgoing calls