Skip to content

Commit

Permalink
feat: throwing error so verify is caught by sentry (#653)
Browse files Browse the repository at this point in the history
* feat: throwing error so verify is caught by sentry

* fix: now with error displayed
  • Loading branch information
YazeedLoonat authored Nov 28, 2023
1 parent 456aa9a commit 6b07c09
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sites/public/src/pages/applications/review/summary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,12 @@ const ApplicationSummary = () => {
.then(() => {
conductor.routeToNextOrReturnUrl()
})
.catch(() => {
.catch((e) => {
setValidationError(true)
window.scrollTo(0, 0)
throw new Error(
`An error occurred while trying to verify the application submission is valid. ${e.message}`
)
})
}

Expand Down

0 comments on commit 6b07c09

Please sign in to comment.