FIX: fix a crash issue when copy failed

Change-Id: Ie0cd4676d9f31213c80a4a9a7f5c836c58a53120
This commit is contained in:
salt.wei authored and Lane.Wei committed 2022-12-15 04:38:15 -05:00
1 parent de8db2a89c
commit 93a0d3a4ca
2 files changed
+5 -1

No files matched your search

+1 -1
View File
@@ -818,7 +818,7 @@ CopyFileResult copy_file_inner(const std::string& from, const std::string& to, s
if (ec) {
error_message = ec.message();
BOOST_LOG_TRIVIAL(error) << boost::format("###copy_file from %1% to %2% failed, error: %3% ")
%source.string() %target.string() << error_message;
%source.string() %target.string() % error_message;
return FAIL_COPY_FILE;
}
ec.clear();