Continuing with species refactor

This commit is contained in:
Matthew Dillon 2015-07-07 07:30:48 -08:00
parent 622cd0faaf
commit 9aed858982
8 changed files with 99 additions and 60 deletions

View file

@ -25,11 +25,6 @@ export default DS.RESTAdapter.extend({
});
}
return new DS.InvalidError(errors);
} else if (jqXHR && jqXHR.status === 500) {
var response = Ember.$.parseJSON(jqXHR.responseText);
if (response.error !== undefined) {
return new DS.InvalidError(response.error);
}
} else {
return error;
}