Calendar fetch error is still a loading result

Also log error on node side as well.
This commit is contained in:
Matt Bauer 2019-06-13 15:52:49 -05:00
parent a6284e05e5
commit d41afa0e53
No known key found for this signature in database
GPG Key ID: 8B19FD47C0522772
2 changed files with 2 additions and 0 deletions

View File

@ -135,6 +135,7 @@ Module.register("calendar", {
} }
} else if (notification === "FETCH_ERROR") { } else if (notification === "FETCH_ERROR") {
Log.error("Calendar Error. Could not fetch calendar: " + payload.url); Log.error("Calendar Error. Could not fetch calendar: " + payload.url);
this.loaded = true
} else if (notification === "INCORRECT_URL") { } else if (notification === "INCORRECT_URL") {
Log.error("Calendar Error. Incorrect url: " + payload.url); Log.error("Calendar Error. Incorrect url: " + payload.url);
} else { } else {

View File

@ -60,6 +60,7 @@ module.exports = NodeHelper.create({
}); });
fetcher.onError(function(fetcher, error) { fetcher.onError(function(fetcher, error) {
console.error("Calendar Error. Could not fetch calendar: ", fetcher.url(), error)
self.sendSocketNotification("FETCH_ERROR", { self.sendSocketNotification("FETCH_ERROR", {
url: fetcher.url(), url: fetcher.url(),
error: error error: error