stop iterating over tasks if you can't read the root directory

pull/1/head
ansuz 5 years ago
parent 6b657c47ce
commit d4038344ba

@ -102,6 +102,7 @@ var list = Tasks.list = function (env, cb, migration) {
root: env.root, root: env.root,
error: e, error: e,
}); });
w.abort();
return void cb(e); return void cb(e);
} }
if (list.length === 0) { if (list.length === 0) {

Loading…
Cancel
Save