diff options
| author | Alexander Karatarakis <alkarata@microsoft.com> | 2018-10-15 17:08:27 -0700 |
|---|---|---|
| committer | Alexander Karatarakis <alkarata@microsoft.com> | 2018-10-15 21:32:01 -0700 |
| commit | 10e7bd5772ca1a5d315200ba6c7541141e72b935 (patch) | |
| tree | dd42f043cea08eaf77a2fe7627dfca07cab40bd2 | |
| parent | 20a8e393a01925f977689c70b58299372b725536 (diff) | |
| download | vcpkg-10e7bd5772ca1a5d315200ba6c7541141e72b935.tar.gz vcpkg-10e7bd5772ca1a5d315200ba6c7541141e72b935.zip | |
Print out the error when dumpbin fails
| -rw-r--r-- | toolsrc/src/vcpkg/postbuildlint.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/toolsrc/src/vcpkg/postbuildlint.cpp b/toolsrc/src/vcpkg/postbuildlint.cpp index 6fe11951f..90dcb7d64 100644 --- a/toolsrc/src/vcpkg/postbuildlint.cpp +++ b/toolsrc/src/vcpkg/postbuildlint.cpp @@ -617,7 +617,11 @@ namespace vcpkg::PostBuildLint const std::string cmd_line = Strings::format(R"("%s" /directives "%s")", dumpbin_exe.u8string(), lib.u8string()); System::ExitCodeAndOutput ec_data = System::cmd_execute_and_capture_output(cmd_line); - Checks::check_exit(VCPKG_LINE_INFO, ec_data.exit_code == 0, "Running command:\n %s\n failed", cmd_line); + Checks::check_exit(VCPKG_LINE_INFO, + ec_data.exit_code == 0, + "Running command:\n %s\n failed with message:\n%s", + cmd_line, + ec_data.output); for (const BuildType& bad_build_type : bad_build_types) { |
