At least log the error

This commit is contained in:
Floris Bruynooghe
2019-10-31 22:19:43 +01:00
committed by holger krekel
parent b264d3be3c
commit faa78e1c04

View File

@@ -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
}