Skip to content

Commit

Permalink
fix: ignore CanceledError's in ErrorBoundary messages (#396)
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikBjare authored Jan 24, 2023
1 parent 7d4438f commit bd4ac3d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/components/ErrorBoundary.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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…
Expand Down

1 comment on commit bd4ac3d

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here are screenshots of this commit:

Screenshots using aw-server v0.12.1 (click to expand)

Screenshots using aw-server-rust master (click to expand)

Screenshots using aw-server-rust v0.12.1 (click to expand)

Please sign in to comment.