summaryrefslogtreecommitdiff
path: root/src/buildtool/execution_api/git/git_api.hpp
diff options
context:
space:
mode:
authorOliver Reiche <oliver.reiche@huawei.com>2023-12-12 11:09:36 +0100
committerOliver Reiche <oliver.reiche@huawei.com>2023-12-13 15:23:11 +0100
commit599dddc182b702192252753c76429d3da44aa463 (patch)
treeefe6512905b3c75026d80fb9f7ff2a4e3558e9f5 /src/buildtool/execution_api/git/git_api.hpp
parent94de8e505ca7812e5ae572cdbf75243a7bdc99bf (diff)
downloadjustbuild-599dddc182b702192252753c76429d3da44aa463.tar.gz
Filesystem: Fix copy overwrite of symlink with file
... and improve log messages in case of failure. (cherry picked from commit 65d35006de65e540355833a56bcaa7659f6f1afd)
Diffstat (limited to 'src/buildtool/execution_api/git/git_api.hpp')
-rw-r--r--src/buildtool/execution_api/git/git_api.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/buildtool/execution_api/git/git_api.hpp b/src/buildtool/execution_api/git/git_api.hpp
index 5b552220..e3d24743 100644
--- a/src/buildtool/execution_api/git/git_api.hpp
+++ b/src/buildtool/execution_api/git/git_api.hpp
@@ -80,6 +80,9 @@ class GitApi final : public IExecutionApi {
not FileSystemManager::WriteFileAs</*kSetEpochTime=*/true,
/*kSetWritable=*/true>(
*blob, output_paths[i], info.type)) {
+ Logger::Log(LogLevel::Error,
+ "staging to output path {} failed.",
+ output_paths[i].string());
return false;
}
}