diff options
| author | bjornpiltz <bjornpiltz@gmail.com> | 2017-11-02 10:48:52 +0100 |
|---|---|---|
| committer | Alexander Karatarakis <alex@karatarakis.com> | 2017-11-03 16:20:41 -0700 |
| commit | 57934e5bbe485e904b47d49b3609d4000a4ca952 (patch) | |
| tree | 95d356a57cf71575e5a14218c17a5ab768fc30f5 | |
| parent | 82ce87cfd0854907a270ef2f8de80670bd8428b3 (diff) | |
| download | vcpkg-57934e5bbe485e904b47d49b3609d4000a4ca952.tar.gz vcpkg-57934e5bbe485e904b47d49b3609d4000a4ca952.zip | |
Print error message when there is a syntax error in triplet file
As it is now vcpkg fails silently (actually, it outputs two empty lines).
| -rw-r--r-- | toolsrc/src/vcpkg/build.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toolsrc/src/vcpkg/build.cpp b/toolsrc/src/vcpkg/build.cpp index 8b4654aa8..ca0712a06 100644 --- a/toolsrc/src/vcpkg/build.cpp +++ b/toolsrc/src/vcpkg/build.cpp @@ -489,7 +489,7 @@ namespace vcpkg::Build {"CMAKE_TRIPLET_FILE", triplet_file_path}, }); const auto ec_data = System::cmd_execute_and_capture_output(cmd_launch_cmake); - Checks::check_exit(VCPKG_LINE_INFO, ec_data.exit_code == 0); + Checks::check_exit(VCPKG_LINE_INFO, ec_data.exit_code == 0, ec_data.output); const std::vector<std::string> lines = Strings::split(ec_data.output, "\n"); |
