From 6961ff8c2baa25d5c8da7330ae56c9f65fd411b2 Mon Sep 17 00:00:00 2001 From: doomsower <12031673+doomsower@users.noreply.github.com> Date: Mon, 9 Dec 2024 15:59:08 -0300 Subject: [PATCH] fix: debugging failed retries --- src/utils/retry.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/retry.ts b/src/utils/retry.ts index 09802b5..11fa66a 100644 --- a/src/utils/retry.ts +++ b/src/utils/retry.ts @@ -20,5 +20,5 @@ export async function retry( await setTimeout(interval); } } - throw new Error("all attempts failed", { cause }); + throw new Error(`all attempts failed: ${cause}`); }