🐛 Add error message
This commit is contained in:
parent
822b7d3b2e
commit
ce4850e852
1 changed files with 2 additions and 0 deletions
|
@ -17,6 +17,8 @@ export default function taskManager(tasks: Array<() => Promise<void>>, maxConcur
|
|||
curPromise.then(() => {
|
||||
currentlyRunningTasks -= 1;
|
||||
return startNewTask();
|
||||
}).catch((error) => {
|
||||
reject(error);
|
||||
});
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue