Added cmd to rsync error output
parent
37e21b5b6b
commit
00e4d7e856
|
@ -492,8 +492,9 @@ const sshDeploy = (() => {
|
||||||
nodeRsync({ src, dest, args, privateKey, ssh: true, port, sshCmdArgs: ['-o StrictHostKeyChecking=no'], recursive: true }, (error, stdout, stderr, cmd) => {
|
nodeRsync({ src, dest, args, privateKey, ssh: true, port, sshCmdArgs: ['-o StrictHostKeyChecking=no'], recursive: true }, (error, stdout, stderr, cmd) => {
|
||||||
if (error) {
|
if (error) {
|
||||||
console.error('⚠️ Rsync error', error.message);
|
console.error('⚠️ Rsync error', error.message);
|
||||||
console.log(stderr);
|
console.log('stderr: ', stderr);
|
||||||
console.log(stdout);
|
console.log('stdout: ', stdout);
|
||||||
|
console.log('cmd: ', cmd);
|
||||||
process.abort();
|
process.abort();
|
||||||
} else {
|
} else {
|
||||||
console.log("✅ Rsync finished.", stdout);
|
console.log("✅ Rsync finished.", stdout);
|
||||||
|
|
|
@ -17,8 +17,9 @@ const sshDeploy = (() => {
|
||||||
nodeRsync({ src, dest, args, privateKey, ssh: true, port, sshCmdArgs: ['-o StrictHostKeyChecking=no'], recursive: true }, (error, stdout, stderr, cmd) => {
|
nodeRsync({ src, dest, args, privateKey, ssh: true, port, sshCmdArgs: ['-o StrictHostKeyChecking=no'], recursive: true }, (error, stdout, stderr, cmd) => {
|
||||||
if (error) {
|
if (error) {
|
||||||
console.error('⚠️ Rsync error', error.message);
|
console.error('⚠️ Rsync error', error.message);
|
||||||
console.log(stderr);
|
console.log('stderr: ', stderr);
|
||||||
console.log(stdout);
|
console.log('stdout: ', stdout);
|
||||||
|
console.log('cmd: ', cmd);
|
||||||
process.abort();
|
process.abort();
|
||||||
} else {
|
} else {
|
||||||
console.log("✅ Rsync finished.", stdout);
|
console.log("✅ Rsync finished.", stdout);
|
||||||
|
|
Loading…
Reference in New Issue