diff --git a/index.js b/index.js index 892d5fa..1aa56a9 100644 --- a/index.js +++ b/index.js @@ -29,10 +29,7 @@ const client = new Client({ }); backendsocket.on("connect_error", (err) => { - // the reason of the error, for example "xhr poll error" - console.log(err.message); - // some additional description, for example the status code of the initial HTTP response - console.log(err.description); + console.error(`Error connecting to backend: ${err.message}`); }); if (!fs.existsSync('./temp')) fs.mkdirSync('./temp');