mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-25 23:11:17 +08:00
Use Checks::exit_with_message()
This commit is contained in:
parent
059d90b802
commit
5c504265f3
@ -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] == '-')
|
||||
|
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user