From d41afa0e532e076b57a191649bd13868c0e5c026 Mon Sep 17 00:00:00 2001 From: Matt Bauer Date: Thu, 13 Jun 2019 15:52:49 -0500 Subject: [PATCH] Calendar fetch error is still a loading result Also log error on node side as well. --- modules/default/calendar/calendar.js | 1 + modules/default/calendar/node_helper.js | 1 + 2 files changed, 2 insertions(+) diff --git a/modules/default/calendar/calendar.js b/modules/default/calendar/calendar.js index 2eac086e80..7da5efd0be 100755 --- a/modules/default/calendar/calendar.js +++ b/modules/default/calendar/calendar.js @@ -135,6 +135,7 @@ Module.register("calendar", { } } else if (notification === "FETCH_ERROR") { Log.error("Calendar Error. Could not fetch calendar: " + payload.url); + this.loaded = true } else if (notification === "INCORRECT_URL") { Log.error("Calendar Error. Incorrect url: " + payload.url); } else { diff --git a/modules/default/calendar/node_helper.js b/modules/default/calendar/node_helper.js index 9c6e49795c..7d644ace19 100644 --- a/modules/default/calendar/node_helper.js +++ b/modules/default/calendar/node_helper.js @@ -60,6 +60,7 @@ module.exports = NodeHelper.create({ }); fetcher.onError(function(fetcher, error) { + console.error("Calendar Error. Could not fetch calendar: ", fetcher.url(), error) self.sendSocketNotification("FETCH_ERROR", { url: fetcher.url(), error: error