From 3d978f8310285d3e136b794e2346158e8e72b005 Mon Sep 17 00:00:00 2001 From: Alexander Karatarakis Date: Wed, 22 Mar 2017 17:01:11 -0700 Subject: Use Checks::check_exit() --- toolsrc/src/commands_integrate.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'toolsrc/src/commands_integrate.cpp') 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) { -- cgit v1.2.3