Error returns the error message
()
| 52 | |
| 53 | // Error returns the error message |
| 54 | func (e *APIError) Error() string { |
| 55 | if e.ProviderErr != nil { |
| 56 | return fmt.Sprintf("%s: %s (provider error: %s)", e.Type, e.Message, e.ProviderErr.Error()) |
| 57 | } |
| 58 | return fmt.Sprintf("%s: %s", e.Type, e.Message) |
| 59 | } |
| 60 | |
| 61 | // Unwrap returns the wrapped error |
| 62 | func (e *APIError) Unwrap() error { |
no outgoing calls