Log on failure to fetch storage

// FREEBIE
This commit is contained in:
lilia 2016-08-09 16:11:18 -07:00
parent 67c7a06c28
commit 83629df560
1 changed files with 3 additions and 1 deletions

View File

@ -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);
});
}
};