test
parent
ca23c2c303
commit
e54aae76b6
|
|
@ -499,14 +499,16 @@ class RemoteClientSystem {
|
||||||
throw new Error(error.toString());
|
throw new Error(error.toString());
|
||||||
}
|
}
|
||||||
if (stderr) {
|
if (stderr) {
|
||||||
cloud_runner_logger_1.default.logRemoteCli(`[STD-E/DIAG] ${stderr.toString()}`);
|
cloud_runner_logger_1.default.logRemoteCli(`[DIAGNOSTIC] ${stderr.toString()}`);
|
||||||
}
|
}
|
||||||
const outputChunk = `${stdout.toString()}`;
|
const outputChunk = `${stdout.toString()}`;
|
||||||
cloud_runner_logger_1.default.logRemoteCli(outputChunk);
|
cloud_runner_logger_1.default.logRemoteCli(outputChunk);
|
||||||
output += outputChunk;
|
output += outputChunk;
|
||||||
});
|
});
|
||||||
child.on('close', function (code) {
|
child.on('close', function (code) {
|
||||||
cloud_runner_logger_1.default.logRemoteCli(`${code}`);
|
if (code !== 0) {
|
||||||
|
throw new Error(output);
|
||||||
|
}
|
||||||
promise(output);
|
promise(output);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -11,14 +11,16 @@ export class RemoteClientSystem {
|
||||||
throw new Error(error.toString());
|
throw new Error(error.toString());
|
||||||
}
|
}
|
||||||
if (stderr) {
|
if (stderr) {
|
||||||
CloudRunnerLogger.logRemoteCli(`[STD-E/DIAG] ${stderr.toString()}`);
|
CloudRunnerLogger.logRemoteCli(`[DIAGNOSTIC] ${stderr.toString()}`);
|
||||||
}
|
}
|
||||||
const outputChunk = `${stdout.toString()}`;
|
const outputChunk = `${stdout.toString()}`;
|
||||||
CloudRunnerLogger.logRemoteCli(outputChunk);
|
CloudRunnerLogger.logRemoteCli(outputChunk);
|
||||||
output += outputChunk;
|
output += outputChunk;
|
||||||
});
|
});
|
||||||
child.on('close', function (code) {
|
child.on('close', function (code) {
|
||||||
CloudRunnerLogger.logRemoteCli(`${code}`);
|
if (code !== 0) {
|
||||||
|
throw new Error(output);
|
||||||
|
}
|
||||||
promise(output);
|
promise(output);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue