Say I am returning an RSVP.Hash from a model hook like this:
model: function() {
hash = {
users: App.User.find(),
contacts: App.Contact.find()
};
return Ember.RSVP.hash(hash);
}
This works fine for me in the good case but what about the bad case where one of them returns something other than an http 200? How can I handle errors in this scenario?