From 4e7ef46eefeaaf3b2ba99b9b196ad1e851c1b0b4 Mon Sep 17 00:00:00 2001 From: OskarZyg <56176746+OskarZyg@users.noreply.github.com> Date: Wed, 28 Jul 2021 01:20:17 +0100 Subject: [PATCH] Add errors --- src/index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/index.ts b/src/index.ts index 8f42c62..7f72e75 100644 --- a/src/index.ts +++ b/src/index.ts @@ -17,6 +17,8 @@ loadServerData( const serverProcess = spawn('bash', [`${scriptName}`]); serverProcess.stdout.pipe(process.stdout); + serverProcess.stderr.pipe(process.stderr); + serverProcess.on('exit', () => { console.log('The server has stopped.'); });