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); +}