Skip to content

Commit

Permalink
Merge pull request #334 from threepointone/patch-1
Browse files Browse the repository at this point in the history
Fix Unhandled Promise rejection when called with a non-existent path
  • Loading branch information
cpojer authored Sep 6, 2019
2 parents d63aa84 + 298690d commit 5ed9108
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ function getAllFiles(paths, filter) {
fs.lstat(file, (err, stat) => {
if (err) {
process.stderr.write('Skipping path ' + file + ' which does not exist. \n');
resolve();
resolve([]);
return;
}

Expand Down

0 comments on commit 5ed9108

Please sign in to comment.