summaryrefslogtreecommitdiffstats
path: root/internal/output/output.go
diff options
context:
space:
mode:
authorClawd <ai@clawd.bot>2026-02-15 18:57:28 -0800
committerClawd <ai@clawd.bot>2026-02-15 18:57:28 -0800
commit626055c95ded6ef22c913b47266125884a84fa1c (patch)
tree6a28799491b30304f425352450a4b4298b31f507 /internal/output/output.go
parent14703575578221ad40547147618354503e3005ae (diff)
fix: make ErrorResponse implement error interface for v1 compat
Diffstat (limited to 'internal/output/output.go')
-rw-r--r--internal/output/output.go3
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
105func (r ErrorResponse) IsError() bool { return true } 105func (r ErrorResponse) IsError() bool { return true }
106 106
107// Error implements the error interface for compatibility with v1 code
108func (r *ErrorResponse) Error() string { return r.Message }
109
107// Error codes 110// Error codes
108const ( 111const (
109 ErrInvalidPath = "INVALID_PATH" 112 ErrInvalidPath = "INVALID_PATH"