mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	Add debug to sshkeygen for travis
This commit is contained in:
		| @@ -22,6 +22,8 @@ var log; | ||||
|  | ||||
| function runSshKeygenCommand(args,cwd,env) { | ||||
|     return new Promise(function(resolve, reject) { | ||||
|         console.log("Spawning command",args); | ||||
|         try { | ||||
|             var child = child_process.spawn(sshkeygenCommand, args, {cwd: cwd, detached: true, env: env}); | ||||
|             var stdout = ""; | ||||
|             var stderr = ""; | ||||
| @@ -33,6 +35,9 @@ function runSshKeygenCommand(args,cwd,env) { | ||||
|                 stderr += data; | ||||
|             }); | ||||
|             child.on('close', function(code, signal) { | ||||
|                 console.log("sshKeyGen closed",code); | ||||
|                 console.log("sshKeyGen",stdout); | ||||
|                 console.log("sshKeyGen",stderr); | ||||
|                 if (code !== 0) { | ||||
|                     var err = new Error(stderr); | ||||
|                     err.stdout = stdout; | ||||
| @@ -48,6 +53,10 @@ function runSshKeygenCommand(args,cwd,env) { | ||||
|                     resolve(stdout); | ||||
|                 } | ||||
|             }); | ||||
|         } catch(err) { | ||||
|             console.log("Threw error",err); | ||||
|             reject(err); | ||||
|         } | ||||
|     }); | ||||
| } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user