Ensure AbortErrors have a zero status (#6839)

This commit is contained in:
John Cowen 2019-12-10 12:02:45 +00:00 committed by GitHub
parent c7db07fc2a
commit ee30288515
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -65,6 +65,7 @@ export default Adapter.extend({
switch (err.statusCode) {
case 0:
error = new AbortError();
error.errors[0].status = '0';
break;
case 401:
error = new UnauthorizedError(errors, detailedMessage);