handle-error-codes #18

Merged
Alfred-mk merged 3 commits from handle-error-codes into master 2025-10-27 11:29:55 +01:00
Showing only changes of commit 532547899f - Show all commits

View File

@ -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
}