aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/src/SourceParagraph.cpp
diff options
context:
space:
mode:
authorAlexander Karatarakis <alkarata@microsoft.com>2017-03-22 17:46:05 -0700
committerAlexander Karatarakis <alkarata@microsoft.com>2017-03-22 17:46:05 -0700
commitc1fee48c080abbbe0aec99b2e497cc7bd81a4908 (patch)
tree2d5f227ee232bcdcf78b551bf55cd1d499d72957 /toolsrc/src/SourceParagraph.cpp
parent4bc91f1f269aa72dccd51a8f07134e4e66701793 (diff)
downloadvcpkg-c1fee48c080abbbe0aec99b2e497cc7bd81a4908.tar.gz
vcpkg-c1fee48c080abbbe0aec99b2e497cc7bd81a4908.zip
Use Checks::exit_fail/success/with_code()
Diffstat (limited to 'toolsrc/src/SourceParagraph.cpp')
-rw-r--r--toolsrc/src/SourceParagraph.cpp3
1 files changed, 2 insertions, 1 deletions
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);
}
}