mirror of
https://github.com/nasa/openmct.git
synced 2025-02-02 17:21:14 +00:00
suppressing abort errors as they are expected
This commit is contained in:
parent
a447b0ada8
commit
321c7a3af5
@ -239,9 +239,15 @@ export default class ObjectAPI {
|
|||||||
|
|
||||||
return domainObject;
|
return domainObject;
|
||||||
}).catch((error) => {
|
}).catch((error) => {
|
||||||
console.warn(`Failed to retrieve ${keystring}:`, error);
|
let result;
|
||||||
|
|
||||||
delete this.cache[keystring];
|
delete this.cache[keystring];
|
||||||
const result = this.applyGetInterceptors(identifier);
|
|
||||||
|
// suppress abort errors
|
||||||
|
if (error.name !== 'AbortError') {
|
||||||
|
console.warn(`Failed to retrieve ${keystring}:`, error);
|
||||||
|
result = this.applyGetInterceptors(identifier);
|
||||||
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user