mirror of
https://github.com/easingthemes/ssh-deploy
synced 2026-04-06 04:43:02 +08:00
fix: add proc.on('error') handler to prevent hanging on spawn failure
This commit is contained in:
@@ -51,4 +51,6 @@ module.exports = (options, callback) => {
|
||||
}
|
||||
callback(error, stdout, stderr, cmd);
|
||||
});
|
||||
|
||||
proc.on('error', (err) => callback(err, stdout, stderr, cmd));
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user