Skip to content

Commit

Permalink
Merge pull request #456 from jpulec/patch-1
Browse files Browse the repository at this point in the history
fix: first retry logging
  • Loading branch information
VisargD authored Jul 26, 2024
2 parents 985cd10 + 282c13f commit 5174c83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/handlers/retryHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ export const retryRequest = async (
headers: error.headers,
});
console.warn(
`Tried ${lastAttempt} time(s) but failed. Error: ${JSON.stringify(error)}`
`Tried ${lastAttempt ?? 1} time(s) but failed. Error: ${JSON.stringify(error)}`
);
}
return [lastResponse as Response, lastAttempt];
Expand Down

0 comments on commit 5174c83

Please sign in to comment.