mirror of https://github.com/nodejs/node.git
benchmark: fix `wrk` check
PR-URL: https://github.com/iojs/io.js/pull/1076 Reviewed-By: Colin Ihrig <cjihrig@gmail.com>pull/1078/merge
parent
37bb1df7c4
commit
b27931b0fe
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue