From 10b056205984c383986af8002e47a651ac3d9957 Mon Sep 17 00:00:00 2001 From: Edward Peterson Date: Fri, 18 Nov 2022 14:59:57 -0500 Subject: [PATCH] Fixed whole process crashing when a single url fails --- index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index a3b4002..da92cc4 100644 --- a/index.js +++ b/index.js @@ -76,7 +76,9 @@ async function run(url, processor) { } }); } - reject(); + resolve({}) + }).catch(error => { + resolve({}) }); }))) console.log('URLS done downloading')