diff --git a/base/src/directory_ex.cpp b/base/src/directory_ex.cpp index bac6356d160f932f8333e50d52f09df9d903eb7f..1b9123712cc5d68e04bd3acecf74ef801dd4b0d7 100644 --- a/base/src/directory_ex.cpp +++ b/base/src/directory_ex.cpp @@ -217,6 +217,7 @@ bool ForceCreateDirectory(const string& path) if (access(subPath.c_str(), F_OK) != 0) { if (mkdir(subPath.c_str(), (S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH)) != 0 && errno != EEXIST) { + UTILS_LOGE("Failed to create subPath: %{public}s: %{public}s ", subPath.c_str(), strerror(errno)); return false; } }