Skip to content

Commit

Permalink
removed catch statement in this package to catch in other package lol
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewJLang committed Mar 18, 2021
1 parent 7ec72c8 commit f5f7995
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
20 changes: 10 additions & 10 deletions lib/api/Api.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,16 +165,16 @@ module.exports = class Api {
}

self._syncPromise = self._syncPromise.then(data => {
self._state = new Cache(data);
self._lastSyncTime = new Date().getTime();
self._syncPromise = null;
})
.catch(err => {
// This is an informational message for now as we do not yet want to blow up as it is difficult to see the
// context of this reported error from users so far.
console.error(`Failed to async load the bridge configuration data; ${err}`);
self._syncPromise = null;
});
self._state = new Cache(data);
self._lastSyncTime = new Date().getTime();
self._syncPromise = null;
});
// .catch(err => {
// // This is an informational message for now as we do not yet want to blow up as it is difficult to see the
// // context of this reported error from users so far.
// console.error(`Failed to async load the bridge configuration data; ${err}`);
// self._syncPromise = null;
// });
}
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "stream-lux-node-hue-api",
"description": "Philips Hue API Library for Node.js",
"version": "1.1.0",
"version": "1.1.1",
"author": "Peter Murray <peter.murray@osirisoft.com>",
"contributors": [
{
Expand Down

0 comments on commit f5f7995

Please sign in to comment.