summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/buildtool/file_system/git_repo.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/buildtool/file_system/git_repo.cpp b/src/buildtool/file_system/git_repo.cpp
index 253adad1..c0774971 100644
--- a/src/buildtool/file_system/git_repo.cpp
+++ b/src/buildtool/file_system/git_repo.cpp
@@ -1749,9 +1749,11 @@ auto GitRepo::CreateTree(tree_entries_t const& entries) const noexcept
entry.name.c_str(),
&(*id),
ObjectTypeToGitFileMode(entry.type)) != 0) {
- Logger::Log(LogLevel::Debug,
- "failed adding object {} to Git tree",
- ToHexString(raw_id));
+ Logger::Log(
+ LogLevel::Debug,
+ "failed adding object {} to Git tree{}",
+ ToHexString(raw_id),
+ id ? fmt::format(" with:\n{}", GitLastError()) : "");
return std::nullopt;
}
}