Use check_exit() instead of check_throw()
MODIFY
src/Paragraphs.cpp
src/Paragraphs.cpp
@@ -101,7 +101,7 @@ namespace vcpkg::Paragraphs
auto begin_fieldname = cur;
while (is_alphanum(ch) || ch == '-')
next(ch);
- Checks::check_throw(ch == ':', "Expected ':'");
+ Checks::check_exit(ch == ':', "Expected ':'");
fieldname = std::string(begin_fieldname, cur);
// skip ': '
@@ -119,7 +119,7 @@ namespace vcpkg::Paragraphs
get_fieldname(ch, fieldname);
auto it = fields.find(fieldname);
- Checks::check_throw(it == fields.end(), "Duplicate field");
+ Checks::check_exit(it == fields.end(), "Duplicate field");
get_fieldvalue(ch, fieldvalue);

MODIFY
src/StatusParagraphs.cpp
src/StatusParagraphs.cpp
@@ -42,7 +42,7 @@ namespace vcpkg
StatusParagraphs::iterator StatusParagraphs::insert(std::unique_ptr<StatusParagraph> pgh)
{
- Checks::check_throw(pgh != nullptr, "Inserted null paragraph");
+ Checks::check_exit(pgh != nullptr, "Inserted null paragraph");
const package_spec& spec = pgh->package.spec;
auto ptr = find(spec.name(), spec.target_triplet());
if (ptr == end())

Use check_exit() instead of check_throw()