Skip to content

Conversation

ahmedhosssam
Copy link
Contributor

@ahmedhosssam ahmedhosssam commented Mar 20, 2025

Description

Fixes #1940

I think it would be better to show Borg's error messages inside Vorta's exception dialog instead of relying on the tiny progress event box.
Now most of Borgs' commands would have a "started" and "finished" messages appears in the progress event box, and the errors would appear in the exception dialog.

I also added finished_event function to mount and umuont, I'm not sure but I think it should have error handling also, just as the rest of the commands.

Now the command that doesn't have that change are info_archive, info_repo, init, version, and rename.

Related Issue

#1940

How Has This Been Tested?

I tested it by changing Borg's commands from the source code to force them to fail and return non-zero code, and the result for all the commands is just like the screen record.

Screen Record:

2025-03-20.03-14-30.mp4

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • I have read the CONTRIBUTING guide.
  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

I provide my contribution under the terms of the license of this repository and I affirm the Developer Certificate of Origin.

@m3nu
Copy link
Contributor

m3nu commented Jul 13, 2025

Please review @VandalByte and let me know if this is suitable to be added. IIRC we already have an error dialog for the whole app in the code. This could reuse it, but just for Borg errors. Thanks!

@VandalByte
Copy link
Collaborator

I tested the changes by introducing errors, and everything works as expected for various borg commands.

One issue I encountered is with tests/integration/test_init.py::test_create_repo which has a test regarding creating a repo, even though the test is passing in my machine the new error dialog window just stays open and test is halted until I manually close that window.

I think the error already existed, but it didn’t affect the tests. Now that the new error dialog surfaces it in a separate window, it's causing the tests to hang.

@VandalByte
Copy link
Collaborator

I have added the fixes with the commit: c8ee821 on the branch master...VandalByte:vorta:fix-better-borg-error

The commit also includes some minor bug fixes for the previously merged Change Passphrase feature.

@eternaltyro
Copy link

This also fixes my recent peeve with Vorta log display.

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.

Error message overflows window
4 participants