Skip to content

feat: show user-friendly dialog when repository is not found (#1815)#2487

Open
tusharynayaka wants to merge 3 commits intoborgbase:masterfrom
tusharynayaka:fix-1815-repo-init-prompt
Open

feat: show user-friendly dialog when repository is not found (#1815)#2487
tusharynayaka wants to merge 3 commits intoborgbase:masterfrom
tusharynayaka:fix-1815-repo-init-prompt

Conversation

@tusharynayaka
Copy link
Copy Markdown

Description
Added a specific error handling check for Borg's "repository does not exist" exit code (Borg return code 2) in the repository addition workflow. Instead of failing silently or providing a generic error, Vorta now displays a clear QMessageBox informing the user that the path was not found and suggests checking the URL.

Related Issue
Fixes #1815

Motivation and Context
Currently, when a user enters an incorrect or non-existent repository path in the "Add Existing Repository" dialog, the feedback is either non-existent or confusing (often falling back to a "Borg binary not found" state if the process fails). This change improves the onboarding UX by giving immediate, actionable feedback when a path is mistyped.

How Has This Been Tested?
Environment:

OS: Windows 11

Backend: Borg 1.2.8 running via WSL2

Bridge: Custom batch script to route Windows Vorta calls to WSL Borg.

Types of changes
[x] New feature (non-breaking change which adds functionality)

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

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.

Vorta trying to fast after resume

1 participant