From a14727f3f00b6e0be463795843f834e2665f1f58 Mon Sep 17 00:00:00 2001 From: C-3PO Date: Sun, 14 Oct 2018 00:33:28 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20Output=20error=20message=20to=20?= =?UTF-8?q?help=20debugging?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/cdn/downloadWrapper.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cdn/downloadWrapper.ts b/src/cdn/downloadWrapper.ts index 14393e5..2b1d1cb 100644 --- a/src/cdn/downloadWrapper.ts +++ b/src/cdn/downloadWrapper.ts @@ -28,7 +28,8 @@ export default async function downloadWrapper({ host, path, size, useCurl = fals try { const downloadResult = await downloadWithCurl({ host, path, tempFileName }); return downloadResult; - } catch { + } catch (err) { + console.error(err); //ignore error and try again } }