Ensure AbortErrors have a zero status (#6839)
This commit is contained in:
parent
c7db07fc2a
commit
ee30288515
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue