From fac4a151759ac8cd9e3c64b2019ebeaff0c2b734 Mon Sep 17 00:00:00 2001 From: Xargana Date: Thu, 27 Mar 2025 09:51:24 +0300 Subject: [PATCH] a --- status/server.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/status/server.js b/status/server.js index e5a362e..9b7475b 100644 --- a/status/server.js +++ b/status/server.js @@ -57,6 +57,10 @@ const sslOptions = { }; // Start HTTPS Server -https.createServer(sslOptions, app).listen(PORT, () => { - console.log(`API running at https://localhost:${PORT}`); -}); \ No newline at end of file +try { + https.createServer(sslOptions, app).listen(PORT, () => { + console.log(`API running at https://localhost:${PORT}`); + }); +} catch (e) { + console.error("Error starting server:", e); +}