From 16a61d5c4b1faff9571a3f02ebaeecc7684603af Mon Sep 17 00:00:00 2001 From: Klaus Aehlig Date: Tue, 28 Jun 2022 11:00:47 +0200 Subject: Use a more meaningful abbreviation of expression values ... in error messages. The outer structure is usually more important than the the details of the first element. --- src/buildtool/build_engine/expression/expression.hpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/buildtool/build_engine/expression/expression.hpp') diff --git a/src/buildtool/build_engine/expression/expression.hpp b/src/buildtool/build_engine/expression/expression.hpp index 68dddb10..334dfb0d 100644 --- a/src/buildtool/build_engine/expression/expression.hpp +++ b/src/buildtool/build_engine/expression/expression.hpp @@ -212,6 +212,7 @@ class Expression { -> nlohmann::json; [[nodiscard]] auto IsCacheable() const -> bool; [[nodiscard]] auto ToString() const -> std::string; + [[nodiscard]] auto ToAbbrevString(size_t len) const -> std::string; [[nodiscard]] auto ToHash() const noexcept -> std::string; [[nodiscard]] auto ToIdentifier() const noexcept -> std::string { return ToHexString(ToHash()); -- cgit v1.2.3