We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
wrk
1 parent 37bb1df commit b27931bCopy full SHA for b27931b
benchmark/common.js
@@ -39,7 +39,7 @@ if (module === require.main) {
39
40
function hasWrk() {
41
var result = child_process.spawnSync('wrk', ['-h']);
42
- if (result.error.code === 'ENOENT') {
+ if (result.error && result.error.code === 'ENOENT') {
43
console.error('Couldn\'t locate `wrk` which is needed for running ' +
44
'benchmarks. Check benchmark/README.md for further instructions.');
45
process.exit(-1);
0 commit comments