From 83629df560492adcf4434bcef46cf38dd1fdc3de Mon Sep 17 00:00:00 2001 From: lilia Date: Tue, 9 Aug 2016 16:11:18 -0700 Subject: [PATCH] Log on failure to fetch storage // FREEBIE --- js/storage.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/storage.js b/js/storage.js index 273bde2a..81fcf577 100644 --- a/js/storage.js +++ b/js/storage.js @@ -58,7 +58,9 @@ fetch: function() { return new Promise(function(resolve) { - items.fetch({reset: true}).always(resolve); + items.fetch({reset: true}).fail(function() { + console.log('Failed to fetch from storage'); + }).always(resolve); }); } };