зеркало из https://github.com/microsoft/vcpkg.git
[vcpkg] Improved help message upon build failure.
This commit is contained in:
Родитель
ab74726c99
Коммит
93f8088a5a
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -7,6 +7,8 @@ namespace vcpkg
|
|||
{
|
||||
void update_command(const vcpkg_cmd_arguments& /*args*/, const vcpkg_paths& paths)
|
||||
{
|
||||
System::println("Using local portfile versions. To update the local portfiles, use `git pull`.");
|
||||
|
||||
auto status_db = database_load_check(paths);
|
||||
|
||||
std::unordered_map<std::string, std::string> src_names_to_versions;
|
||||
|
|
Загрузка…
Ссылка в новой задаче