add logging for catch error block
This commit is contained in:
parent
d2f3afd9fa
commit
f677014cb1
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue