diff options
Diffstat (limited to 'internal/output')
| -rw-r--r-- | internal/output/output.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/internal/output/output.go b/internal/output/output.go index 1e1e34e..a9a1036 100644 --- a/internal/output/output.go +++ b/internal/output/output.go | |||
| @@ -104,6 +104,9 @@ type ErrorResponse struct { | |||
| 104 | 104 | ||
| 105 | func (r ErrorResponse) IsError() bool { return true } | 105 | func (r ErrorResponse) IsError() bool { return true } |
| 106 | 106 | ||
| 107 | // Error implements the error interface for compatibility with v1 code | ||
| 108 | func (r *ErrorResponse) Error() string { return r.Message } | ||
| 109 | |||
| 107 | // Error codes | 110 | // Error codes |
| 108 | const ( | 111 | const ( |
| 109 | ErrInvalidPath = "INVALID_PATH" | 112 | ErrInvalidPath = "INVALID_PATH" |
