Fix ssh-keygen error handling

pull/2259/head
Nick O'Leary 2019-08-06 17:12:40 +01:00
parent ffd10e656e
commit defa9a2270
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9
1 changed files with 1 additions and 1 deletions

View File

@ -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";
} }