I'll refactor if it needed. Surely this cannot be the **the only way** to
handle internal exceptions.


On Fri, May 24, 2013 at 5:45 PM, Alex Matchneer <notifications@github.com>wrote:

> In packages/ember-data/lib/adapters/rest_adapter.js:
>
> > @@ -132,6 +132,8 @@ DS.RESTAdapter = DS.Adapter.extend({
> >      }, function(xhr) {
> >        adapter.didError(store, type, record, xhr);
> >        throw xhr;
> > +    }).then(null, function(error) {
>
> Why not .then(null, handleError); with a function handleError(error) {
> console.error(error.message); } ?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/emberjs/data/pull/995/files#r4383495>
> .
>