Skip to content

Commit bea31b9

Browse files
update error message
1 parent d2844a7 commit bea31b9

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/orkes/request/request.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,8 +223,9 @@ const fetchWithRetry = async (
223223
} catch (error: unknown) {
224224
if (retries > 0) {
225225
console.log(
226-
`[${request.method} ${url}] Fetch error encountered. Retrying request in ${delay}ms...`,
227-
error
226+
`[${request.method} ${url}] fetch error caught.
227+
${error}
228+
Retrying request in ${delay}ms...`
228229
);
229230
await new Promise((resolve) => setTimeout(resolve, delay));
230231
return fetchWithRetry(url, request, fetchFn, retries - 1, delay * 2);

0 commit comments

Comments
 (0)