aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Karatarakis <alkarata@microsoft.com>2017-03-22 17:01:11 -0700
committerAlexander Karatarakis <alkarata@microsoft.com>2017-03-22 17:01:11 -0700
commit3d978f8310285d3e136b794e2346158e8e72b005 (patch)
tree1920dc1b09f2e2e2a3b62826089aca79b6846400
parentf32a2d42718a770faad65a944766cd0f9747d191 (diff)
downloadvcpkg-3d978f8310285d3e136b794e2346158e8e72b005.tar.gz
vcpkg-3d978f8310285d3e136b794e2346158e8e72b005.zip
Use Checks::check_exit()
-rw-r--r--toolsrc/src/commands_integrate.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/toolsrc/src/commands_integrate.cpp b/toolsrc/src/commands_integrate.cpp
index 7011f8d1d..8d6e42fd1 100644
--- a/toolsrc/src/commands_integrate.cpp
+++ b/toolsrc/src/commands_integrate.cpp
@@ -229,11 +229,7 @@ namespace vcpkg::Commands::Integrate
std::error_code ec;
bool was_deleted = fs::remove(path, ec);
- if (ec)
- {
- System::println(System::color::error, "Error: Unable to remove user-wide integration: %d", ec.message());
- exit(EXIT_FAILURE);
- }
+ Checks::check_exit(VCPKG_LINE_INFO, !ec, "Error: Unable to remove user-wide integration: %d", ec.message());
if (was_deleted)
{