Skip to content

Commit

Permalink
Better readdir() failure message
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Jun 16, 2010
1 parent 7902618 commit 51a6740
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion bin/expresso
Expand Up @@ -273,7 +273,11 @@ function run(files, dir) {
});
} else {
fs.readdir('test', function(err, files){
if (err) sys.error('failed to run tests in ./test'), process.exit(1);
if (err) {
print('\n failed to load tests in [bold]{./test}\n');
++failed;
process.exit(1);
}
run(files, 'test/');
});
}
Expand Down

0 comments on commit 51a6740

Please sign in to comment.