Add debug to sshkeygen

This commit is contained in:
Nick O'Leary 2018-01-19 22:10:29 +00:00
parent a9b50ce6fc
commit c2508296a5
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9
1 changed files with 3 additions and 0 deletions

View File

@ -33,6 +33,9 @@ function runSshKeygenCommand(args,cwd,env) {
stderr += data;
});
child.on('close', function(code, signal) {
console.log(code);
console.log(stdout);
console.log(stderr);
if (code !== 0) {
var err = new Error(stderr);
err.stdout = stdout;