From 004e46d982e8822c356763106e579e5b5e9553f2 Mon Sep 17 00:00:00 2001 From: Alexander Karatarakis Date: Wed, 22 Mar 2017 17:18:41 -0700 Subject: [PATCH] Correctly forward the line_info parameter --- toolsrc/src/vcpkg_Enums.cpp | 2 +- toolsrc/src/vcpkg_Files.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/toolsrc/src/vcpkg_Enums.cpp b/toolsrc/src/vcpkg_Enums.cpp index b5a487a375..46e61db7be 100644 --- a/toolsrc/src/vcpkg_Enums.cpp +++ b/toolsrc/src/vcpkg_Enums.cpp @@ -11,6 +11,6 @@ namespace vcpkg::Enums __declspec(noreturn) void nullvalue_used(const LineInfo& line_info, const std::string& enum_name) { - Checks::exit_with_message(VCPKG_LINE_INFO, "NULLVALUE of enum %s was used", enum_name); + Checks::exit_with_message(line_info, "NULLVALUE of enum %s was used", enum_name); } } diff --git a/toolsrc/src/vcpkg_Files.cpp b/toolsrc/src/vcpkg_Files.cpp index 95b99691c1..6b5270ef3d 100644 --- a/toolsrc/src/vcpkg_Files.cpp +++ b/toolsrc/src/vcpkg_Files.cpp @@ -8,7 +8,7 @@ namespace vcpkg::Files void check_is_directory(const LineInfo& line_info, const fs::path& dirpath) { - Checks::check_exit(VCPKG_LINE_INFO, fs::is_directory(dirpath), "The path %s is not a directory", dirpath.string()); + Checks::check_exit(line_info, fs::is_directory(dirpath), "The path %s is not a directory", dirpath.string()); } bool has_invalid_chars_for_filesystem(const std::string& s)