summaryrefslogtreecommitdiff
path: root/src/buildtool/execution_api/remote/bazel/bazel_response.hpp
diff options
context:
space:
mode:
authorPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2024-09-12 18:07:03 +0200
committerPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2024-09-16 10:01:34 +0200
commita9ec80795740dd33a1bcf18f43e30f473bf90dc7 (patch)
treea19972fe30b519d3fc2dd5bc61048853ba80fc8e /src/buildtool/execution_api/remote/bazel/bazel_response.hpp
parent49c2382ea5ea45966ef15140fce6ad89672e956c (diff)
downloadjustbuild-a9ec80795740dd33a1bcf18f43e30f473bf90dc7.tar.gz
bazel_response: Improve error reporting for uploading trees
Diffstat (limited to 'src/buildtool/execution_api/remote/bazel/bazel_response.hpp')
-rw-r--r--src/buildtool/execution_api/remote/bazel/bazel_response.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/buildtool/execution_api/remote/bazel/bazel_response.hpp b/src/buildtool/execution_api/remote/bazel/bazel_response.hpp
index ec3e9748..7c095645 100644
--- a/src/buildtool/execution_api/remote/bazel/bazel_response.hpp
+++ b/src/buildtool/execution_api/remote/bazel/bazel_response.hpp
@@ -92,8 +92,8 @@ class BazelResponse final : public IExecutionResponse {
/// \returns Error message on failure, nullopt on success.
[[nodiscard]] auto Populate() noexcept -> std::optional<std::string>;
- [[nodiscard]] auto UploadTreeMessageDirectories(
- bazel_re::Tree const& tree) const -> std::optional<ArtifactDigest>;
+ [[nodiscard]] auto UploadTreeMessageDirectories(bazel_re::Tree const& tree)
+ const -> expected<ArtifactDigest, std::string>;
};
#endif // INCLUDED_SRC_BUILDTOOL_EXECUTION_API_REMOTE_BAZEL_BAZEL_RESPONSE_HPP