diff --git a/server.js b/server.js index 5aa142a..db55e5a 100644 --- a/server.js +++ b/server.js @@ -143,8 +143,10 @@ app.get('/calendar/:name', async (req, res) => { }); } } + } catch (error) { + console.error(error); + res.status(500).json({ error: 'Failed to retrieve calendar data.' }); } - }); // Serve the merged calendar file