Skip to content

Commit

Permalink
[No ticket] Throw an error when registries overview page errors (#1912)
Browse files Browse the repository at this point in the history
## Purpose

Help to be able to debug situations where the registries overview page goes to the not-found page inappropriately.

## Summary of Changes

1. Send the error to sentry after transitioning to page not found.
  • Loading branch information
brianjgeiger authored Jul 28, 2023
1 parent 6bfaca0 commit 0233110
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/registries/addon/overview/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,8 @@ export default class Overview extends GuidRoute {
}

@action
error() {
error(error: Error, _: unknown) {
this.replaceWith('page-not-found', notFoundURL(this.router.currentURL));
captureException(error);
}
}

0 comments on commit 0233110

Please sign in to comment.