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

More useful error message than "No such file or directory" #311

Closed
AlphaJack opened this issue Oct 3, 2024 · 1 comment
Closed

More useful error message than "No such file or directory" #311

AlphaJack opened this issue Oct 3, 2024 · 1 comment
Labels
A-errors Area: error handling needs improvement

Comments

@AlphaJack
Copy link

I have a profile that if I backup returns this error message:

error: opening file failed: `Os { code: 2, kind: NotFound, message: "No such file or directory" }`

How can I understand better the issue, i.e. of which file or directory it is talking about?
The log file at DEBUG level isn't helpful in this regard:

# [...]

2024-10-03T02:38:22.758907955Z [DEBUG] (1) rustic_core::archiver::tree_archiver: changed   tree: "/home/jack/Documents" 2.1 kiB
2024-10-03T02:38:22.7590611Z [DEBUG] (1) rustic_core::archiver::tree_archiver: changed   tree: "/home/jack" 149 B
2024-10-03T02:38:22.759243073Z [DEBUG] (1) rustic_core::archiver::tree_archiver: changed   tree: "/home" 144 B
2024-10-03T02:38:27.20479552Z [DEBUG] (1) rustic_core::archiver::tree_archiver: changed   tree: "" 144 B
@github-actions github-actions bot added the S-triage Status: Waiting for a maintainer to triage this issue/PR label Oct 3, 2024
@simonsan simonsan transferred this issue from rustic-rs/rustic Oct 5, 2024
@simonsan simonsan added A-errors Area: error handling needs improvement and removed S-triage Status: Waiting for a maintainer to triage this issue/PR labels Oct 5, 2024
@simonsan
Copy link
Contributor

We added a new RusticError API, the errors should be much more concise now.

https://github.com/rustic-rs/rustic_core/releases/tag/rustic_core-v0.6.0

In case there are still problems, feel free to reopen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-errors Area: error handling needs improvement
Projects
None yet
Development

No branches or pull requests

2 participants