From 9840e3bfc48dbe435f0bbe693ab3e79e7cb5106f Mon Sep 17 00:00:00 2001 From: KiritoDv Date: Sun, 8 Mar 2020 18:33:47 -0600 Subject: [PATCH] Added handle to another errors --- src/main.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.ts b/src/main.ts index bb27ac3..4a5cba0 100644 --- a/src/main.ts +++ b/src/main.ts @@ -42,9 +42,10 @@ app.get('/maven/*', (req, res) => { app.listen(port, () => { console.log("[UVLib] Started on port: " + port); }).on('error', (err) => { - console.log(err.message) if(err.message.includes("EADDRINUSE")){ console.log("[UVLib] There was an error starting the server"); console.log("[UVLib] The port is already in use try changing it with --port=1234"); + }else{ + console.log("[UVLib] There was an error starting the server"); } });