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

refactor(error): improve error messages and file handling #334

Draft
wants to merge 8 commits into
base: main
Choose a base branch
from

Commits on Oct 14, 2024

  1. refactor(error): improve error messages and file handling

    - Update error messages for file operations in the `LocalBackendErrorKind` enum.
    - Refactor the `ReadBackend` and `WriteBackend` implementations in the `LocalBackend` module to handle file opening errors more accurately.
    - Add error variants `OpeningFileForPartialReadingFailed` and `OpeningFileForWritingFailed` to provide specific information about file opening failures.
    - Create parent directory if it does not exist before opening the file for writing.
    
    Fixes #rustic-rs/rustic#1315
    
    Signed-off-by: simonsan <[email protected]>
    simonsan committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    ac73cc1 View commit details
    Browse the repository at this point in the history
  2. improve direction creation error as well

    Signed-off-by: simonsan <[email protected]>
    simonsan committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    6c06125 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    b868ff7 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    958f3c2 View commit details
    Browse the repository at this point in the history

Commits on Oct 16, 2024

  1. Configuration menu
    Copy the full SHA
    bb36d48 View commit details
    Browse the repository at this point in the history
  2. add method from review

    Signed-off-by: simonsan <[email protected]>
    simonsan committed Oct 16, 2024
    Configuration menu
    Copy the full SHA
    fa7bffc View commit details
    Browse the repository at this point in the history
  3. refactoring to option instead of result

    Signed-off-by: simonsan <[email protected]>
    simonsan committed Oct 16, 2024
    Configuration menu
    Copy the full SHA
    dadd302 View commit details
    Browse the repository at this point in the history

Commits on Oct 22, 2024

  1. Configuration menu
    Copy the full SHA
    6dda9a7 View commit details
    Browse the repository at this point in the history