diff --git a/lib/api/Api.js b/lib/api/Api.js index 432d4fb..8ad4d24 100644 --- a/lib/api/Api.js +++ b/lib/api/Api.js @@ -165,11 +165,12 @@ module.exports = class Api { } self._syncPromise = self._syncPromise.then(data => { - self._syncPromise = null; self._state = new Cache(data); self._lastSyncTime = new Date().getTime(); + self._syncPromise = null; }) - .catch(() => { + .catch(err => { + console.error(`Failed to async load the bridge configuration data; ${err}`); self._syncPromise = null; }); }