diff options
| author | Alexander Karatarakis <alkarata@microsoft.com> | 2017-02-28 19:58:19 -0800 |
|---|---|---|
| committer | Alexander Karatarakis <alkarata@microsoft.com> | 2017-02-28 20:00:35 -0800 |
| commit | b6907f417b33d089c509516ca09961623860d06e (patch) | |
| tree | 0cfe4f7f1e303375aab37c2678b406979077f5e2 /toolsrc/src/commands_integrate.cpp | |
| parent | 9e43dbb184785d48d9b5eca0ff60410b68663289 (diff) | |
| download | vcpkg-b6907f417b33d089c509516ca09961623860d06e.tar.gz vcpkg-b6907f417b33d089c509516ca09961623860d06e.zip | |
Use Checks::check_exit()
Diffstat (limited to 'toolsrc/src/commands_integrate.cpp')
| -rw-r--r-- | toolsrc/src/commands_integrate.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/toolsrc/src/commands_integrate.cpp b/toolsrc/src/commands_integrate.cpp index edb35d33a..6d28da6ab 100644 --- a/toolsrc/src/commands_integrate.cpp +++ b/toolsrc/src/commands_integrate.cpp @@ -272,12 +272,7 @@ namespace vcpkg::Commands::Integrate const int exit_code = System::cmd_execute(cmd_line); const fs::path nuget_package = buildsystems_dir / Strings::format("%s.%s.nupkg", nuget_id, nupkg_version); - if (exit_code != 0 || !fs::exists(nuget_package)) - { - System::println(System::color::error, "Error: NuGet package creation failed"); - exit(EXIT_FAILURE); - } - + Checks::check_exit(exit_code == 0 && fs::exists(nuget_package), "Error: NuGet package creation failed"); System::println(System::color::success, "Created nupkg: %s", nuget_package.string()); System::println(R"( |
