pull/310/head
Frostebite 2021-12-26 03:07:37 +00:00
parent 9876ce965e
commit 119f8b0a0b
3 changed files with 7 additions and 3 deletions

4
dist/index.js vendored
View File

@ -500,6 +500,7 @@ class RemoteClientSystem {
}
if (stderr) {
cloud_runner_logger_1.default.logRemoteCli(`[DIAGNOSTIC] ${stderr.toString()}`);
return;
}
const outputChunk = `${stdout.toString()}`;
cloud_runner_logger_1.default.logRemoteCli(outputChunk);
@ -507,8 +508,9 @@ class RemoteClientSystem {
});
child.on('close', function (code) {
if (code !== 0) {
throw new Error(`[FAIL][${code}] ${output}`);
throw new Error(`[exit code ${code}] Output Ended`);
}
cloud_runner_logger_1.default.logRemoteCli(`[exit code 0] Output Ended`);
promise(output);
});
});

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -12,6 +12,7 @@ export class RemoteClientSystem {
}
if (stderr) {
CloudRunnerLogger.logRemoteCli(`[DIAGNOSTIC] ${stderr.toString()}`);
return;
}
const outputChunk = `${stdout.toString()}`;
CloudRunnerLogger.logRemoteCli(outputChunk);
@ -19,8 +20,9 @@ export class RemoteClientSystem {
});
child.on('close', function (code) {
if (code !== 0) {
throw new Error(`[FAIL][${code}] ${output}`);
throw new Error(`[exit code ${code}] Output Ended`);
}
CloudRunnerLogger.logRemoteCli(`[exit code 0] Output Ended`);
promise(output);
});
});