diff --git a/src/index.ts b/src/index.ts index 4dc3d96..66c149d 100644 --- a/src/index.ts +++ b/src/index.ts @@ -85,7 +85,10 @@ const runRestarts = async (status: Awaited>) => result.stdout?.on('data', data => console.log(data)); result.stderr?.on('data', data => console.log(data)); result.on('exit', code => { - if (code != 0) restarting.bot = false; // Assume restart command has failed + if (code != 0) { + console.log('Bot: Restart command seems to have failed!'); + restarting.bot = false; + } }); } catch(e) { console.log(e); @@ -100,7 +103,10 @@ const runRestarts = async (status: Awaited>) => result.stdout?.on('data', data => console.log(data)); result.stderr?.on('data', data => console.log(data)); result.on('exit', code => { - if (code != 0) restarting.bridge = false; + if (code != 0) { + console.log('Bridge: Restart command seems to have failed!'); + restarting.bridge = false; + } }); } catch(e) { console.log(e);