From ce4850e85262c185fb2c4cae1497fcc5fcc70a6c Mon Sep 17 00:00:00 2001 From: C-3PO Date: Fri, 14 Sep 2018 06:25:59 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Add=20error=20message?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/ssn/patcher-installer/taskManager.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ssn/patcher-installer/taskManager.ts b/src/ssn/patcher-installer/taskManager.ts index b145b35..3e51068 100644 --- a/src/ssn/patcher-installer/taskManager.ts +++ b/src/ssn/patcher-installer/taskManager.ts @@ -17,6 +17,8 @@ export default function taskManager(tasks: Array<() => Promise>, maxConcur curPromise.then(() => { currentlyRunningTasks -= 1; return startNewTask(); + }).catch((error) => { + reject(error); }); } };