aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Neumann <30894796+Neumann-A@users.noreply.github.com>2020-11-24 01:17:36 +0100
committerGitHub <noreply@github.com>2020-11-23 16:17:36 -0800
commit5ae8ef54f42f0fd9be40debf127666210736ad0b (patch)
treed125bf039bdfb2a472ba0cea265cc93132a682e9
parentff7113a7c6dcb38a4cbf144052b3691b348ef4da (diff)
downloadvcpkg-5ae8ef54f42f0fd9be40debf127666210736ad0b.tar.gz
vcpkg-5ae8ef54f42f0fd9be40debf127666210736ad0b.zip
[vcpkg] Output the filepath on hash error. (#14674)
* update hash error message to include the path * Update toolsrc/include/vcpkg/base/hash.h Co-authored-by: nicole mazzuca <mazzucan@outlook.com>
-rw-r--r--toolsrc/include/vcpkg/base/hash.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/toolsrc/include/vcpkg/base/hash.h b/toolsrc/include/vcpkg/base/hash.h
index d62fd3921..0747e6737 100644
--- a/toolsrc/include/vcpkg/base/hash.h
+++ b/toolsrc/include/vcpkg/base/hash.h
@@ -43,7 +43,8 @@ namespace vcpkg::Hash
const auto result = get_file_hash(fs, path, algo, ec);
if (ec)
{
- Checks::exit_with_message(li, "Failure to read file for hashing: %s", ec.message());
+ Checks::exit_with_message(
+ li, "Failure to read file '%s' for hashing: %s", fs::u8string(path), ec.message());
}
return result;