diff options
| author | Alexander Karatarakis <alkarata@microsoft.com> | 2017-03-22 17:01:11 -0700 |
|---|---|---|
| committer | Alexander Karatarakis <alkarata@microsoft.com> | 2017-03-22 17:01:11 -0700 |
| commit | 3d978f8310285d3e136b794e2346158e8e72b005 (patch) | |
| tree | 1920dc1b09f2e2e2a3b62826089aca79b6846400 /toolsrc/src | |
| parent | f32a2d42718a770faad65a944766cd0f9747d191 (diff) | |
| download | vcpkg-3d978f8310285d3e136b794e2346158e8e72b005.tar.gz vcpkg-3d978f8310285d3e136b794e2346158e8e72b005.zip | |
Use Checks::check_exit()
Diffstat (limited to 'toolsrc/src')
| -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) { |
