Skip to content

Commit

Permalink
Refactor logs.
Browse files Browse the repository at this point in the history
  • Loading branch information
RileyWen committed Feb 25, 2025
1 parent cc84a86 commit a863b34
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Utilities/PublicHeader/OS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ bool CreateFoldersForFileEx(const std::string& p, uid_t owner, gid_t group,
current_dir /= part;
if (!fs::exists(current_dir)) {
if (mkdir(current_dir.c_str(), permissions) != 0) {
CRANE_ERROR("CRANE_ERROR: Failed to create directory {}: {}",
current_dir.c_str(), strerror(errno));
CRANE_ERROR("Failed to create directory {}: {}", current_dir.c_str(),
strerror(errno));
return false;
}
}
Expand All @@ -90,7 +90,7 @@ bool CreateFoldersForFileEx(const std::string& p, uid_t owner, gid_t group,
}
}
} catch (const std::exception& e) {
CRANE_ERROR("CRANE_ERROR: Failed to create folder for {}: {}", p.c_str(),
CRANE_ERROR("Failed to create folder for {}: {}", p.c_str(),
e.what());
return false;
}
Expand Down

0 comments on commit a863b34

Please sign in to comment.