When adding a repository fails, we currently only show a generic error, like "Unable to add repository". To improve this, we would need to parse every log line and add some heuristics on why it failed. Some possible causes:
password wrong (in Borg logs)
connection failed (in SSH logs, but not exactly)
SSH auth fails (in SSH logs)
No repository in this location yet
...
Solution
A better implementation would parse all logs of a Borg run and try to find key log patterns. Then translate them to a meaningful error message.
Description
When adding a repository fails, we currently only show a generic error, like "Unable to add repository". To improve this, we would need to parse every log line and add some heuristics on why it failed. Some possible causes:
Solution
A better implementation would parse all logs of a Borg run and try to find key log patterns. Then translate them to a meaningful error message.