mirror of https://github.com/status-im/consul.git
Ensure AbortErrors have a zero status (#6839)
This commit is contained in:
parent
dfa8d919f7
commit
f691a29240
|
@ -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