diff options
| author | Clawd <ai@clawd.bot> | 2026-02-15 18:57:28 -0800 |
|---|---|---|
| committer | Clawd <ai@clawd.bot> | 2026-02-15 18:57:28 -0800 |
| commit | 626055c95ded6ef22c913b47266125884a84fa1c (patch) | |
| tree | 6a28799491b30304f425352450a4b4298b31f507 /internal/output/output.go | |
| parent | 14703575578221ad40547147618354503e3005ae (diff) | |
fix: make ErrorResponse implement error interface for v1 compat
Diffstat (limited to 'internal/output/output.go')
| -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" |
