From 59aa84f6c8b9fcf056206ae5a0621761974b787e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodrigo=20Ram=C3=ADrez=20Norambuena?= Date: Tue, 25 Jul 2017 17:52:44 -0400 Subject: [PATCH] Add log when clientonly failed on starting. --- clientonly/index.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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 +}());