fix issues
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user