update utils/common_utils/src/netstack_common_utils.cpp.

增加日志信息

Signed-off-by: mayongzhi <mayongzhi@h-partners.com>
This commit is contained in:
mayongzhi 2024-09-04 14:29:06 +00:00 committed by Gitee
parent 999249576d
commit 917b966674
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -472,7 +472,7 @@ std::string GetFileDataFromFilePath(const std::string& filePath)
std::error_code error;
auto path = std::filesystem::absolute(filePath, error);
if (error) {
NETSTACK_LOGE("Failed to obtain the absolute path");
NETSTACK_LOGE("Failed to obtain the absolute path: %{public}s", error.message().c_str());
return false;
}
std::ifstream file(path);