From f677014cb18b4c454670b29a11676c5d6c087293 Mon Sep 17 00:00:00 2001 From: Ryan Mwangi Date: Mon, 4 Nov 2024 13:51:49 +0300 Subject: [PATCH] add logging for catch error block --- server.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server.js b/server.js index 20adfc8..7956e34 100644 --- a/server.js +++ b/server.js @@ -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)