Browse Source

fix: catch errors on value update

Gerald 7 years ago
parent
commit
3fc55e8135
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/background/utils/values.js

+ 3 - 0
src/background/utils/values.js

@@ -81,6 +81,9 @@ function doUpdate() {
     return dumpValueStores(valueStores);
   })
   .then(broadcastUpdates)
+  .catch(err => {
+    console.error('Values error:', err);
+  })
   .then(() => {
     timer = null;
     if (cache) updateLater();