Skip to content

Commit b27931b

Browse files
committed
benchmark: fix wrk check
PR-URL: #1076 Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
1 parent 37bb1df commit b27931b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

benchmark/common.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ if (module === require.main) {
3939

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

0 commit comments

Comments
 (0)