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

This commit is contained in:
ansuz committed 2020-03-11 16:34:00 -04:00
1 parent 6b657c47ce
commit d4038344ba
1 file changed
+1
+1
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) {