From: Joel Rosdahl Date: Sat, 1 Jul 2023 08:00:40 +0000 (+0200) Subject: chore: Improve log message for nonexistent header file for manifest X-Git-Tag: v4.9~158 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6f20e1427897702c460038b18edfe9819e8720ca;p=thirdparty%2Fccache.git chore: Improve log message for nonexistent header file for manifest --- diff --git a/src/core/Manifest.cpp b/src/core/Manifest.cpp index c1c3e0cd8..6f9b1b725 100644 --- a/src/core/Manifest.cpp +++ b/src/core/Manifest.cpp @@ -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;