]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
fix: Bail properly when failing to hash Clang config file
authorJoel Rosdahl <joel@rosdahl.net>
Thu, 30 Jul 2026 14:54:12 +0000 (16:54 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Thu, 30 Jul 2026 14:54:12 +0000 (16:54 +0200)
src/ccache/ccache.cpp

index 86d3f81b29748d80604320799c9f598167f6244a..352809dc4430e646cb431d62d0b0901c9bb862fb 100644 (file)
@@ -2284,6 +2284,7 @@ hash_argument(const Context& ctx,
     hash.hash_delimiter("config");
     if (auto r = hash.hash_file(path); !r) {
       LOG("Failed to hash option file {}: {}", path, r.error());
+      return tl::unexpected(Statistic::bad_input_file);
     }
     return {};
   }