aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/src/commands_build.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'toolsrc/src/commands_build.cpp')
-rw-r--r--toolsrc/src/commands_build.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/toolsrc/src/commands_build.cpp b/toolsrc/src/commands_build.cpp
index 8dc4a455d..afc814451 100644
--- a/toolsrc/src/commands_build.cpp
+++ b/toolsrc/src/commands_build.cpp
@@ -103,7 +103,7 @@ namespace vcpkg::Commands::Build
}
}
- std::string create_error_message(const std::string& package_id, const BuildResult build_result)
+ std::string create_error_message(const BuildResult build_result, const std::string& package_id)
{
return Strings::format("Error: Building package %s failed with: %s", package_id, Build::to_string(build_result));
}
@@ -164,7 +164,7 @@ namespace vcpkg::Commands::Build
if (result != BuildResult::SUCCEEDED)
{
- System::println(System::color::error, Build::create_error_message(spec.toString(), result));
+ System::println(System::color::error, Build::create_error_message(result, spec.toString()));
exit(EXIT_FAILURE);
}