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
1 changed files with 1 additions and 0 deletions

View File

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