diff --git a/toolsrc/src/PostBuildLint.cpp b/toolsrc/src/PostBuildLint.cpp index 00a6eabe62..462dbaa0fb 100644 --- a/toolsrc/src/PostBuildLint.cpp +++ b/toolsrc/src/PostBuildLint.cpp @@ -706,7 +706,6 @@ namespace vcpkg::PostBuildLint { System::println("-- Performing post-build validation"); const size_t error_count = perform_all_checks_and_return_error_count(spec, paths); - System::println("-- Performing post-build validation done"); if (error_count != 0) { @@ -714,6 +713,8 @@ namespace vcpkg::PostBuildLint System::println(System::color::error, "Found %u error(s). Please correct the portfile:\n %s", error_count, portfile.string()); } + System::println("-- Performing post-build validation done"); + return error_count; } }