Skip to content

Conversation

@f321x
Copy link
Member

@f321x f321x commented Aug 12, 2025

Currently the exceptions raised by create_storage() are all plain Exception and shown as warning in the GUI. This causes us to miss bugs like #10117 because they never get forwarded to the crash reporter.

This PR makes the exception types of create_storage() more specific, UserFacingException are still shown to the user as before, but other exception types are caught in the calling GUI and forwarded to the crash reporter instead.

@f321x f321x added the topic-wizard 🧙‍♂️ related to wallet creation/restore wizard label Aug 12, 2025
f321x added 3 commits August 12, 2025 11:00
Modifies `NewWalletWizard.create_storage()` to raise more specific
exception types instead of plain `Exception`. This should allow the
calling GUI to separate between non-bug exceptions (like invalid user
input), and bugs which should not happen and be
passed to the bug reporter.
Differentiate between the `UserFacingException` and other exceptions
when creating the storage. Forward other exceptions to the reporter so
they can get fixed.
Differentiate between the `UserFacingException` and other exceptions
when creating the storage. Forward other exceptions to the reporter so
they can get fixed.
@f321x f321x force-pushed the qml_create_storage_exc branch from 33eb847 to f92e9e5 Compare August 12, 2025 09:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

topic-wizard 🧙‍♂️ related to wallet creation/restore wizard

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant