Slightly improved error handling, some heuristics for number of cores to build with, and misc. work in progress changes.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3246 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
@ -121,7 +121,13 @@ function invoke(handlers, argv) {
|
||||
var promises = [];
|
||||
if (handlers) {
|
||||
for (var i = 0; i < handlers.length; ++i) {
|
||||
promises.push(handlers[i].apply({}, argv));
|
||||
try {
|
||||
promises.push(handlers[i].apply({}, argv));
|
||||
} catch (error) {
|
||||
handlers.splice(i, 1);
|
||||
i--;
|
||||
promises.push(new Promise(function(resolve, reject) { reject(error); }));
|
||||
}
|
||||
}
|
||||
}
|
||||
return Promise.all(promises);
|
||||
|
Reference in New Issue
Block a user