1
0
Fork 0

add logging for catch error block

This commit is contained in:
Ryan Mwangi 2024-11-04 13:51:49 +03:00
parent d2f3afd9fa
commit f677014cb1
1 changed files with 2 additions and 1 deletions

View File

@ -58,7 +58,8 @@ app.post('/merge', async (req, res) => {
});
} catch (error){
console.error(`Error reading calendar file ${calendar.url}:`, error);
return Promise.resolve(null);
}
} else {
return axios.get(calendar.url)