mirror of
https://github.com/easingthemes/ssh-deploy
synced 2026-04-05 20:33:01 +08:00
fix: add proc.on('error') handler to prevent hanging on spawn failure
This commit is contained in:
2
dist/index.js
vendored
2
dist/index.js
vendored
File diff suppressed because one or more lines are too long
@@ -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));
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user