Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
vvo committed Nov 5, 2024
1 parent a28959f commit aabdf54
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/blob/src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,10 @@ export async function requestApi<TResponse>(
{
retries: getRetries(),
onRetry: (error) => {
debug(`retrying API request to ${pathname}`, error.message);
if (error instanceof Error) {
debug(`retrying API request to ${pathname}`, error.message);
}

retryCount = retryCount + 1;
},
},
Expand Down

0 comments on commit aabdf54

Please sign in to comment.