add error catching

This commit is contained in:
Philipp Kunz 2016-08-03 11:28:13 +02:00
parent a1ad463140
commit 11cdaad226
2 changed files with 5 additions and 1 deletions

File diff suppressed because one or more lines are too long

View File

@ -72,6 +72,8 @@ export let runTask = function (taskArg: Task, optionsArg: {x?, touchedTasksArray
})
.then(x => {
done.resolve(x);
}).catch((err) => {
console.log(err);
});
localDeferred.resolve();
return done.promise;