mirror of
https://github.com/chatmail/core.git
synced 2026-04-28 19:06:35 +03:00
At least log the error
This commit is contained in:
committed by
holger krekel
parent
b264d3be3c
commit
faa78e1c04
@@ -436,12 +436,13 @@ pub(crate) fn dc_copy_file(
|
||||
let dest_abs = dc_get_abs_path(context, &dest);
|
||||
match fs::copy(&src_abs, &dest_abs) {
|
||||
Ok(_) => true,
|
||||
Err(_) => {
|
||||
Err(err) => {
|
||||
error!(
|
||||
context,
|
||||
"Cannot copy \"{}\" to \"{}\".",
|
||||
"Cannot copy \"{}\" to \"{}\": {}",
|
||||
src.as_ref().display(),
|
||||
dest.as_ref().display(),
|
||||
err,
|
||||
);
|
||||
false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user