aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/src/commands_install.cpp
diff options
context:
space:
mode:
authorAlexander Karatarakis <alkarata@microsoft.com>2017-03-22 17:45:39 -0700
committerAlexander Karatarakis <alkarata@microsoft.com>2017-03-22 17:45:39 -0700
commit4bc91f1f269aa72dccd51a8f07134e4e66701793 (patch)
treedab6f286b6f07b47d73a8bb05b16db66fe1dadd1 /toolsrc/src/commands_install.cpp
parent27bc6060203b5232bfb3b022b08ef66f64fb3ba9 (diff)
downloadvcpkg-4bc91f1f269aa72dccd51a8f07134e4e66701793.tar.gz
vcpkg-4bc91f1f269aa72dccd51a8f07134e4e66701793.zip
[commands] Use Checks::exit_fail/success/with_code()
Diffstat (limited to 'toolsrc/src/commands_install.cpp')
-rw-r--r--toolsrc/src/commands_install.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/toolsrc/src/commands_install.cpp b/toolsrc/src/commands_install.cpp
index b7a8eafac..3ca4d5dbb 100644
--- a/toolsrc/src/commands_install.cpp
+++ b/toolsrc/src/commands_install.cpp
@@ -159,7 +159,7 @@ namespace vcpkg::Commands::Install
System::print("\n ");
System::println(Strings::join("\n ", intersection));
System::println("");
- exit(EXIT_FAILURE);
+ Checks::exit_fail(VCPKG_LINE_INFO);
}
StatusParagraph spgh;
@@ -221,7 +221,7 @@ namespace vcpkg::Commands::Install
{
System::println(System::color::error, Build::create_error_message(result, action.spec));
System::println(Build::create_user_troubleshooting_message(action.spec));
- exit(EXIT_FAILURE);
+ Checks::exit_fail(VCPKG_LINE_INFO);
}
const BinaryParagraph bpgh = Paragraphs::try_load_cached_package(paths, action.spec).get_or_throw(VCPKG_LINE_INFO);
install_package(paths, bpgh, &status_db);
@@ -238,10 +238,10 @@ namespace vcpkg::Commands::Install
catch (const std::exception& e)
{
System::println(System::color::error, "Error: Could not install package %s: %s", action.spec, e.what());
- exit(EXIT_FAILURE);
+ Checks::exit_fail(VCPKG_LINE_INFO);
}
}
- exit(EXIT_SUCCESS);
+ Checks::exit_success(VCPKG_LINE_INFO);
}
}