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

This commit is contained in:
ansuz 2020-03-11 16:34:00 -04:00
parent 6b657c47ce
commit d4038344ba

View File

@ -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) {