forked from ryanmwangi/CalMerger
add logging for catch error block
This commit is contained in:
parent
d2f3afd9fa
commit
f677014cb1
|
@ -58,7 +58,8 @@ app.post('/merge', async (req, res) => {
|
||||||
});
|
});
|
||||||
|
|
||||||
} catch (error){
|
} catch (error){
|
||||||
|
console.error(`Error reading calendar file ${calendar.url}:`, error);
|
||||||
|
return Promise.resolve(null);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
return axios.get(calendar.url)
|
return axios.get(calendar.url)
|
||||||
|
|
Loading…
Reference in New Issue