From: Brian White Date: Thu, 5 Mar 2015 22:12:17 +0000 (-0500) Subject: benchmark: fix `wrk` check X-Git-Tag: v1.5.0~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b27931b0fedc5fad638d637525aba84b2754ed5f;p=platform%2Fupstream%2Fnodejs.git benchmark: fix `wrk` check PR-URL: https://github.com/iojs/io.js/pull/1076 Reviewed-By: Colin Ihrig --- diff --git a/benchmark/common.js b/benchmark/common.js index 0b0c7ee..2a51874 100644 --- a/benchmark/common.js +++ b/benchmark/common.js @@ -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);