Skip to content

Commit

Permalink
final error catching
Browse files Browse the repository at this point in the history
  • Loading branch information
Kr0nox committed Oct 31, 2023
1 parent 70c961f commit 02ff39a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions report-viewer/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,10 @@ app.use(createPinia())
app.use(router)
app.use(VueVirtualScroller)

app.config.errorHandler = (err, vm, info) => {
console.error(err)
console.error(info)
alert('An unhandeled error occured. Please check the console for more details.')
}

app.mount('#app')

0 comments on commit 02ff39a

Please sign in to comment.