Refaktor calendar error once again for better messaging to the user

This commit is contained in:
veeck
2021-05-02 10:28:11 +02:00
parent d43a57af36
commit 06b3f92963
3 changed files with 8 additions and 11 deletions

View File

@@ -78,7 +78,7 @@ const CalendarFetcher = function (url, reloadInterval, excludedEvents, maximumEn
maximumNumberOfDays
});
} catch (error) {
fetchFailedCallback(this, error.message);
fetchFailedCallback(this, error);
scheduleTimer();
return;
}
@@ -86,7 +86,7 @@ const CalendarFetcher = function (url, reloadInterval, excludedEvents, maximumEn
scheduleTimer();
})
.catch((error) => {
fetchFailedCallback(this, error.message);
fetchFailedCallback(this, error);
scheduleTimer();
});
};