]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
chore: Improve log message for nonexistent header file for manifest
authorJoel Rosdahl <joel@rosdahl.net>
Sat, 1 Jul 2023 08:00:40 +0000 (10:00 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Sun, 2 Jul 2023 08:35:09 +0000 (10:35 +0200)
src/core/Manifest.cpp

index c1c3e0cd80794d2398588b46626b238c5feb2abd..6f9b1b72544d8c11d6170db3bdc3071edcff9c57 100644 (file)
@@ -352,8 +352,11 @@ Manifest::result_matches(
 
     auto stated_files_iter = stated_files.find(path);
     if (stated_files_iter == stated_files.end()) {
-      auto file_stat = Stat::stat(path, Stat::OnError::log);
+      const auto file_stat = Stat::stat(path);
       if (!file_stat) {
+        LOG("Info: {} is mentioned in a manifest entry but can't be read ({})",
+            path,
+            strerror(file_stat.error_number()));
         return false;
       }
       FileStats st;