Continuing with species refactor
This commit is contained in:
parent
622cd0faaf
commit
9aed858982
8 changed files with 99 additions and 60 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Reference in a new issue