From 626055c95ded6ef22c913b47266125884a84fa1c Mon Sep 17 00:00:00 2001 From: Clawd Date: Sun, 15 Feb 2026 18:57:28 -0800 Subject: fix: make ErrorResponse implement error interface for v1 compat --- internal/output/output.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'internal/output') 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 { func (r ErrorResponse) IsError() bool { return true } +// Error implements the error interface for compatibility with v1 code +func (r *ErrorResponse) Error() string { return r.Message } + // Error codes const ( ErrInvalidPath = "INVALID_PATH" -- cgit v1.2.3