mirror of
https://github.com/chatmail/core.git
synced 2026-05-08 17:36:29 +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);
|
let dest_abs = dc_get_abs_path(context, &dest);
|
||||||
match fs::copy(&src_abs, &dest_abs) {
|
match fs::copy(&src_abs, &dest_abs) {
|
||||||
Ok(_) => true,
|
Ok(_) => true,
|
||||||
Err(_) => {
|
Err(err) => {
|
||||||
error!(
|
error!(
|
||||||
context,
|
context,
|
||||||
"Cannot copy \"{}\" to \"{}\".",
|
"Cannot copy \"{}\" to \"{}\": {}",
|
||||||
src.as_ref().display(),
|
src.as_ref().display(),
|
||||||
dest.as_ref().display(),
|
dest.as_ref().display(),
|
||||||
|
err,
|
||||||
);
|
);
|
||||||
false
|
false
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user