From c1fee48c080abbbe0aec99b2e497cc7bd81a4908 Mon Sep 17 00:00:00 2001 From: Alexander Karatarakis Date: Wed, 22 Mar 2017 17:46:05 -0700 Subject: Use Checks::exit_fail/success/with_code() --- toolsrc/src/SourceParagraph.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'toolsrc/src/SourceParagraph.cpp') diff --git a/toolsrc/src/SourceParagraph.cpp b/toolsrc/src/SourceParagraph.cpp index 4d144191f..3a9d71749 100644 --- a/toolsrc/src/SourceParagraph.cpp +++ b/toolsrc/src/SourceParagraph.cpp @@ -4,6 +4,7 @@ #include "vcpkg_System.h" #include "vcpkg_Maps.h" #include "triplet.h" +#include "vcpkg_Checks.h" namespace vcpkg { @@ -59,7 +60,7 @@ namespace vcpkg System::println(System::color::error, "Error: There are invalid fields in the Source Paragraph of %s", this->name); System::println("The following fields were not expected:\n\n %s\n\n", remaining_fields_as_string); System::println("This is the list of valid fields (case-sensitive): \n\n %s\n", valid_fields_as_string); - exit(EXIT_FAILURE); + Checks::exit_fail(VCPKG_LINE_INFO); } } -- cgit v1.2.3