add logging to ensure file merging logic is working

This commit is contained in:
Ryan Mwangi 2024-10-31 15:27:46 +03:00
parent 3f2fb01bf1
commit 46b24b724a
1 changed files with 1 additions and 1 deletions

View File

@ -109,7 +109,7 @@ app.post('/merge', async (req, res) => {
res.json({ url: `${req.protocol}://${req.get('host')}/calendar/${sanitizedLinkGroupName}` }); res.json({ url: `${req.protocol}://${req.get('host')}/calendar/${sanitizedLinkGroupName}` });
} catch (error) { } catch (error) {
console.error(error); console.error('Error merging calendars:', error);
res.status(500).json({ error: 'Failed to merge calendars' }); res.status(500).json({ error: 'Failed to merge calendars' });
} }
}); });