From 6f20e1427897702c460038b18edfe9819e8720ca Mon Sep 17 00:00:00 2001 From: Joel Rosdahl Date: Sat, 1 Jul 2023 10:00:40 +0200 Subject: [PATCH] chore: Improve log message for nonexistent header file for manifest --- src/core/Manifest.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; -- 2.47.2