Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show error dialog when .vorta-init.json is malformed (fixes #1053) #1054

Merged
merged 2 commits into from
Aug 12, 2021
Merged

Show error dialog when .vorta-init.json is malformed (fixes #1053) #1054

merged 2 commits into from
Aug 12, 2021

Conversation

phihos
Copy link
Contributor

@phihos phihos commented Aug 11, 2021

See #1053 for a description of the problem.

This solution catches all exceptions during bootstrap and prints them. The normal exception handler is not yet ready to show the error graphically so we do it ourselves.
While catching all exception is not considered good style I think it is justified in this case because the program should still be in an operable state if the import fails. Currently the program crashes silently on start rendering Vorta inoperable.

@m3nu m3nu merged commit ff010b3 into borgbase:master Aug 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants