Use Checks::exit_with_message()

This commit is contained in:
Alexander Karatarakis 2017-03-22 17:06:09 -07:00
parent 059d90b802
commit 5c504265f3
2 changed files with 2 additions and 4 deletions

View File

@ -72,9 +72,8 @@ namespace vcpkg
if (arg[0] == '-' && arg[1] != '-')
{
System::println(System::color::error, "Error: short options are not supported: %s", arg);
TrackProperty("error", "error short options are not supported");
exit(EXIT_FAILURE);
Checks::exit_with_message(VCPKG_LINE_INFO, "Error: short options are not supported: %s", arg);
}
if (arg[0] == '-' && arg[1] == '-')

View File

@ -165,9 +165,8 @@ namespace vcpkg
if (paths.root.empty())
{
System::println(System::color::error, "Invalid vcpkg root directory: %s", paths.root.string());
TrackProperty("error", "Invalid vcpkg root directory");
exit(EXIT_FAILURE);
Checks::exit_with_message(VCPKG_LINE_INFO, "Invalid vcpkg root directory: %s", paths.root.string());
}
paths.packages = paths.root / "packages";