From 532547899f634b3b8a5fd8c200faab52610aba8e Mon Sep 17 00:00:00 2001 From: Alfred Kamanda Date: Wed, 22 Oct 2025 11:46:13 +0300 Subject: [PATCH] include the error code --- remote/http/service.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/remote/http/service.go b/remote/http/service.go index d5b850a..f1f8d55 100644 --- a/remote/http/service.go +++ b/remote/http/service.go @@ -33,6 +33,9 @@ type APIError struct { } func (e *APIError) Error() string { + if e.Code != "" { + return fmt.Sprintf("[%s] %s", e.Code, e.Description) + } return e.Description }