Skip to content

Commit

Permalink
benchmark: fix wrk check
Browse files Browse the repository at this point in the history
PR-URL: #1076
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
  • Loading branch information
mscdex committed Mar 5, 2015
1 parent 37bb1df commit b27931b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion benchmark/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ if (module === require.main) {

function hasWrk() {
var result = child_process.spawnSync('wrk', ['-h']);
if (result.error.code === 'ENOENT') {
if (result.error && result.error.code === 'ENOENT') {
console.error('Couldn\'t locate `wrk` which is needed for running ' +
'benchmarks. Check benchmark/README.md for further instructions.');
process.exit(-1);
Expand Down

0 comments on commit b27931b

Please sign in to comment.