Skip to content

Commit

Permalink
Code review changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Munter committed Sep 17, 2016
1 parent 349f746 commit 033f66a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions bin/_mocha
Original file line number Diff line number Diff line change
Expand Up @@ -365,15 +365,16 @@ args.forEach(function(arg) {
if (err.message.indexOf('cannot resolve path') === 0) {
console.error('Warning: Could not find any test files matching pattern: ' + arg);
return;
} else {
throw err;
}

throw err;
}

files = files.concat(newFiles);
});

if (files.length === 0) {
if (!files.length) {
console.error('No test files found');
process.exit(1);
}

Expand Down

0 comments on commit 033f66a

Please sign in to comment.