}
fs::remove_all(src, error);
if (error) {
- LOG(ERROR) << "Cannot remove old directory when coping: " << src;
+ LOG(ERROR) << "Cannot remove old directory when coping: " << src
+ << " with error [" << error.message() << "]";
return false;
}
}
fs::copy_file(src, dst, fs::copy_options::overwrite_existing, error);
if (error) {
LOG(WARNING) << "Cannot copy file " << src <<
- " due to error [" << error << "]";
+ " due to error [" << error.message() << "]";
return false;
}
fs::remove_all(src, error);
if (error) {
LOG(ERROR) << "Cannot remove old file when coping: " << src <<
- "with error [" << error << "]";
+ "with error [" << error.message() << "]";
}
}
return true;