5
0
mirror of git://git.proxmox.com/git/proxmox-backup.git synced 2025-01-20 14:03:53 +03:00

push: treat all missing referenced files as fatal

`try_exists` will return Ok(false) if the path is or containts a dangling
symlink, treat that as hard error just like if `try_exists` has returned an
Err(..).

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
Fabian Grünbichler 2024-11-21 09:33:19 +01:00
parent 2492083e37
commit a304ed7c01

View File

@ -849,7 +849,7 @@ pub(crate) async fn push_snapshot(
}
}
} else {
warn!("{path:?} does not exist, skipped.");
bail!("{path:?} does not exist, aborting upload.");
}
}