From 4cb0259a54ded60a52f2a8b721442a44734f8614 Mon Sep 17 00:00:00 2001 From: Rob Herley Date: Wed, 20 Dec 2023 14:37:13 -0500 Subject: [PATCH] reject don't throw --- src/internal/download/download-artifact.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/internal/download/download-artifact.ts b/src/internal/download/download-artifact.ts index 697a10c..110375a 100644 --- a/src/internal/download/download-artifact.ts +++ b/src/internal/download/download-artifact.ts @@ -70,7 +70,7 @@ async function streamExtractInternal( const timeout = 30 * 1000 const timerFn = (): void => { - throw new Error(`Blob storage chunk did not respond in ${timeout}ms `) + reject(new Error(`Blob storage chunk did not respond in ${timeout}ms `)) } let timer = setTimeout(timerFn, timeout)