diff options
| author | Robert Schumacher <roschuma@microsoft.com> | 2016-09-29 11:50:31 -0700 |
|---|---|---|
| committer | Robert Schumacher <roschuma@microsoft.com> | 2016-09-29 11:50:31 -0700 |
| commit | 93f8088a5a48998f3ddc25781c4bdf566a73f24b (patch) | |
| tree | c3739d792b90f1e4c547867e9c8fd98de557889a /toolsrc/src/commands_installation.cpp | |
| parent | ab74726c99855012e257ab002a73928df9a1e5c8 (diff) | |
| download | vcpkg-93f8088a5a48998f3ddc25781c4bdf566a73f24b.tar.gz vcpkg-93f8088a5a48998f3ddc25781c4bdf566a73f24b.zip | |
[vcpkg] Improved help message upon build failure.
Diffstat (limited to 'toolsrc/src/commands_installation.cpp')
| -rw-r--r-- | toolsrc/src/commands_installation.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/toolsrc/src/commands_installation.cpp b/toolsrc/src/commands_installation.cpp index 24ea7480b..e94791efa 100644 --- a/toolsrc/src/commands_installation.cpp +++ b/toolsrc/src/commands_installation.cpp @@ -37,9 +37,16 @@ namespace vcpkg if (return_code != 0) { - System::println(System::color::error, "Error: build command failed"); + System::println(System::color::error, "Error: building package %s failed", to_string(spec)); + System::println("Please ensure sure you're using the latest portfiles with `vcpkg update`, then\n" + "submit an issue at https://github.com/Microsoft/vcpkg/issues including:\n" + " Package: %s\n" + " Vcpkg version: %s\n" + "\n" + "Additionally, attach any relevant sections from the log files above." + , to_string(spec), version()); TrackProperty("error", "build failed"); - TrackProperty("build_error", std::to_string(return_code)); + TrackProperty("build_error", to_string(spec)); exit(EXIT_FAILURE); } |
