Log process kill err

This commit is contained in:
plondon 2021-10-23 12:17:05 -04:00
parent c012899d0a
commit 584c706951
3 changed files with 6 additions and 7 deletions

View File

@ -293,6 +293,10 @@ export class Session {
try {
process.kill(this.term.pty.pid);
} catch (err) {
this.send({
event: 'error doing process.kill',
err
})
// process might have already exited
}
// Signal to terminalOutput message generator using closure.
@ -306,12 +310,10 @@ export class Session {
if (compile) {
cmdline = `( ${compile} ) && ( ${run} )`;
}
} else if (repl && !expectedOutput) {
} else if (repl) {
cmdline = repl;
} else {
cmdline = expectedOutput
? "Test runner"
: `echo '${name} has no REPL, press Run to see it in action'`;
cmdline = `echo '${name} has no REPL, press Run to see it in action'`;
}
if (code === undefined) {
code = createEmpty !== undefined ? createEmpty : template + "\n";

View File

@ -578,8 +578,6 @@ async function getImageHash(tag) {
}
).output;
if (!output) return;
console.log('output config', JSON.parse(output)[0].Config)
// console.log('image hash', output.Config.Labels["riju.image-hash"])
return JSON.parse(output)[0].Config.Labels["riju.image-hash"];
}

View File

@ -77,7 +77,6 @@ export async function run(args, log, options) {
proc.on("error", reject);
proc.on("close", (code, signal) => {
output = output.trim();
console.log(output)
if (output && !suppressOutput) {
log(`Output from ${args[0]}:\n` + output);
}