From bd4ac3d71a8059c93138d02761574d1add631cb2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erik=20Bj=C3=A4reholt?= Date: Tue, 24 Jan 2023 14:24:04 +0100 Subject: [PATCH] fix: ignore CanceledError's in ErrorBoundary messages (#396) --- src/components/ErrorBoundary.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/components/ErrorBoundary.vue b/src/components/ErrorBoundary.vue index f756da7e..765e2e7e 100644 --- a/src/components/ErrorBoundary.vue +++ b/src/components/ErrorBoundary.vue @@ -18,6 +18,11 @@ export default { // console.error("Error captured!"); // console.error(err, vm, info); + // Ignore request cancellation errors + if (err.code === 'ERR_CANCELED') { + return; + } + // fallback let msg = err; // use server error response if available; err.isAxiosError doesn't help much hereā€¦