diff --git a/structure/xmpp.js b/structure/xmpp.js index ca71540..2145bfc 100644 --- a/structure/xmpp.js +++ b/structure/xmpp.js @@ -8,7 +8,7 @@ const port = 80; const wss = new WebSocket({ port: port }, () => console.log("XMPP started listening on port", port)); wss.on("error", (err) => { - if (err.code == "EADDRINUSE") console.log("XMPP \x1b[31mFAILED\x1b[0m to start hosting on port", port); + if (err.code == "EACCES") console.log("XMPP \x1b[31mFAILED\x1b[0m to start hosting on port", port); else throw err; }) @@ -267,4 +267,4 @@ function ifJSON(str) { return false; } return true; -} \ No newline at end of file +}