]> git.proxmox.com Git - proxmox-backup.git/commit
backup/snapshot reader: improve error message for ENOENT
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Thu, 2 Feb 2023 13:04:23 +0000 (14:04 +0100)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Wed, 8 Feb 2023 14:19:29 +0000 (15:19 +0100)
commit07b6db80993b08d1e0533dd180c7b2924c1acf14
treef6066d56f313798ccc82a0dafadfa8d1660a4e29
parentbde9e3d74c86d1600409f81e2a72de91e717cd62
backup/snapshot reader: improve error message for ENOENT

instead of

 Error: unable to open snapshot directory "/full/path/to/snapshot" for locking - ENOENT: No such file or directory

this will now print

 Error: Snapshot vm/800/2023-01-16T12:28:11Z does not exist.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
pbs-datastore/src/snapshot_reader.rs
src/api2/reader/mod.rs