avoid silent errors

This commit is contained in:
oleg 2015-05-15 08:43:57 +03:00
parent 80fbc4e902
commit 47821b4bf0
2 changed files with 2 additions and 0 deletions

View File

@ -30,6 +30,7 @@ define([
onReadAll: function() { onReadAll: function() {
var self = this; var self = this;
resource.sync('read', function(err, builds) { resource.sync('read', function(err, builds) {
if (err) throw err;
self.builds = builds; self.builds = builds;
self.trigger(self.builds); self.trigger(self.builds);
}); });

View File

@ -15,6 +15,7 @@ define([
onReadAll: function() { onReadAll: function() {
var self = this; var self = this;
resource.sync('read', function(err, projects) { resource.sync('read', function(err, projects) {
if (err) throw err;
self.trigger(projects); self.trigger(projects);
}); });
} }