ignore was aborted errors on the interstitial page since they do not matter w/ burnettk
This commit is contained in:
parent
5db3ae6b16
commit
a211f3fd49
|
@ -57,8 +57,13 @@ export default function ProcessInterstitial({
|
||||||
onerror(error: any) {
|
onerror(error: any) {
|
||||||
// if backend returns a 500 then stop attempting to load the task
|
// if backend returns a 500 then stop attempting to load the task
|
||||||
setState('CLOSED');
|
setState('CLOSED');
|
||||||
addError(error);
|
// we know that this server sent events lib gets these sorts of errors when you are on another tab or window while it is working.
|
||||||
throw error;
|
// it's fine
|
||||||
|
const wasAbortedError = /was aborted/.test(error.message);
|
||||||
|
if (!wasAbortedError) {
|
||||||
|
addError(error);
|
||||||
|
throw error;
|
||||||
|
}
|
||||||
},
|
},
|
||||||
onclose() {
|
onclose() {
|
||||||
setState('CLOSED');
|
setState('CLOSED');
|
||||||
|
|
Loading…
Reference in New Issue