pull/310/head
Frostebite 2021-12-26 19:04:43 +00:00
parent 6bbbd166ad
commit baff117be0
3 changed files with 5 additions and 5 deletions

4
dist/index.js vendored
View File

@ -507,10 +507,10 @@ class RemoteClientSystem {
output += outputChunk; output += outputChunk;
}); });
child.on('close', function (code) { child.on('close', function (code) {
cloud_runner_logger_1.default.logRemoteCli(`[exit ${code}]`);
if (code !== 0) { if (code !== 0) {
throw new Error(`[exit code ${code}] Output Ended`); throw new Error(output);
} }
cloud_runner_logger_1.default.logRemoteCli(`[exit code 0] Output Ended`);
promise(output); promise(output);
}); });
}); });

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -19,10 +19,10 @@ export class RemoteClientSystem {
output += outputChunk; output += outputChunk;
}); });
child.on('close', function (code) { child.on('close', function (code) {
CloudRunnerLogger.logRemoteCli(`[exit ${code}]`);
if (code !== 0) { if (code !== 0) {
throw new Error(`[exit code ${code}] Output Ended`); throw new Error(output);
} }
CloudRunnerLogger.logRemoteCli(`[exit code 0] Output Ended`);
promise(output); promise(output);
}); });
}); });