Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
fix: Small mistake with undefined function
Browse files Browse the repository at this point in the history
  • Loading branch information
spruce authored and alexlafroscia committed Nov 30, 2017
1 parent 00c84d6 commit b96d632
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions addon/mixins/ajax-request.js
Expand Up @@ -528,13 +528,12 @@ export default Mixin.create({
// Allow overriding of error payload
payload = this.normalizeErrorResponse(status, headers, payload);

return _createCorrectError(status, headers, payload, requestData);
return this._createCorrectError(status, headers, payload, requestData);
},

_createCorrectError(status, headers, payload, requestData) {
let error;


if (this.isUnauthorizedError(status, headers, payload)) {
error = new UnauthorizedError(payload);
} else if (this.isForbiddenError(status, headers, payload)) {
Expand Down

0 comments on commit b96d632

Please sign in to comment.