fix: add proc.on('error') handler to prevent hanging on spawn failure

This commit is contained in:
Dragan Filipovic
2026-04-02 23:09:25 +02:00
parent 71b8eb300f
commit c81b43c5bf
2 changed files with 3 additions and 1 deletions

2
dist/index.js vendored

File diff suppressed because one or more lines are too long

View File

@@ -51,4 +51,6 @@ module.exports = (options, callback) => {
} }
callback(error, stdout, stderr, cmd); callback(error, stdout, stderr, cmd);
}); });
proc.on('error', (err) => callback(err, stdout, stderr, cmd));
}; };