Skip to content

Tell Vue it's fine to admit errors, we can handle it#8128

Merged
carlobeltrame merged 1 commit intoecamp:develfrom
carlobeltrame:client-print-setup-errors-in-sentry
Sep 6, 2025
Merged

Tell Vue it's fine to admit errors, we can handle it#8128
carlobeltrame merged 1 commit intoecamp:develfrom
carlobeltrame:client-print-setup-errors-in-sentry

Conversation

@carlobeltrame
Copy link
Member

This is the solution to the second detailed problem in #8126. Please merge this together with or after #8126, so that client print doesn't stop working due to missing the fix in #8126.

In client print, if an error happens during the Vue rendering, we want that error to be thrown out of the application. The error will then bubble up to the top level of the worker thread, be caught and relayed by Comlink and then in the main thread reported to Sentry and an error indicator displayed to the user.

However, Vue 3 by default catches all errors and logs them to the console, because normally a Vue app isn't embedded inside of another app. We now explicitely tell Vue to pass errors on without swallowing them.

I tested this locally with an error in a setup script and an error in a computed. Will try to test it on the feature branch deployment too, for a more realistic simulation of production.

@carlobeltrame carlobeltrame requested a review from a team September 6, 2025 17:17
@carlobeltrame carlobeltrame added Bug deploy! Creates a feature branch deployment for this PR labels Sep 6, 2025
@github-actions
Copy link

github-actions bot commented Sep 6, 2025

Feature branch deployment currently inactive.

If the PR is still open, you can add the deploy! label to this PR to trigger a feature branch deployment.

@carlobeltrame carlobeltrame added this pull request to the merge queue Sep 6, 2025
Merged via the queue into ecamp:devel with commit 2abad79 Sep 6, 2025
45 of 46 checks passed
@carlobeltrame carlobeltrame deleted the client-print-setup-errors-in-sentry branch September 6, 2025 23:10
This was referenced Oct 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug deploy! Creates a feature branch deployment for this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants