fix issues

This commit is contained in:
2026-01-01 22:46:59 +01:00
parent 206a03ec48
commit 79913bb45e
336 changed files with 3932 additions and 76 deletions

View File

@@ -86,9 +86,11 @@ export class ApiError extends Error {
this.context.endpoint,
this.context.statusCode ? `status:${this.context.statusCode}` : null,
this.context.retryCount ? `retry:${this.context.retryCount}` : null,
].filter(Boolean).join(' ');
return `${base} ${ctx ? `(${ctx})` : ''}`;
]
.filter(Boolean)
.join(' ');
return ctx ? `${base} ${ctx}` : base;
}
/**
@@ -146,4 +148,4 @@ export function isAuthError(error: unknown): boolean {
export function isRetryableError(error: unknown): boolean {
return isApiError(error) && error.isRetryable();
}
}