diff --git a/clientonly/index.js b/clientonly/index.js index 750a98e6..72495504 100644 --- a/clientonly/index.js +++ b/clientonly/index.js @@ -87,6 +87,13 @@ child.on("error", function (err) { process.stdout.write(`Client: ${err}`); }); + + child.on('close', (code) => { + if (code != 0) { + console.log(`There something wrong. The clientonly is not running code ${code}`); + } + }); + }) .catch(function (reason) { fail(`Unable to connect to server: (${reason})`); @@ -94,4 +101,4 @@ } else { fail(); } -}()); \ No newline at end of file +}());