mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Fix ssh-keygen error handling
This commit is contained in:
parent
ffd10e656e
commit
defa9a2270
@ -51,7 +51,7 @@ function runSshKeygenCommand(args,cwd,env) {
|
|||||||
resolve(stdout);
|
resolve(stdout);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
child.error('error', function(err) {
|
child.on('error', function(err) {
|
||||||
if (/ENOENT/.test(err.toString())) {
|
if (/ENOENT/.test(err.toString())) {
|
||||||
err.code = "command_not_found";
|
err.code = "command_not_found";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user