diff options
Diffstat (limited to 'toolsrc/src/commands_integrate.cpp')
| -rw-r--r-- | toolsrc/src/commands_integrate.cpp | 6 |
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) { |
