From 24290fb0020006e5d1276eb1dcf7498086c7c85e Mon Sep 17 00:00:00 2001 From: Billy O'Neal Date: Mon, 28 Dec 2020 19:35:21 -0800 Subject: [PATCH] [vcpkg] Fix pwsh version detection for old versions to download a fresh copy. (#15355) --- toolsrc/src/vcpkg/tools.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/toolsrc/src/vcpkg/tools.cpp b/toolsrc/src/vcpkg/tools.cpp index 0b82e77806..54b73c93f7 100644 --- a/toolsrc/src/vcpkg/tools.cpp +++ b/toolsrc/src/vcpkg/tools.cpp @@ -525,8 +525,8 @@ Mono JIT compiler version 6.8.0.105 (Debian 6.8.0.105+dfsg-2 Wed Feb 26 23:23:50 auto output = std::move(rc.output); if (!Strings::starts_with(output, "PowerShell ")) { - Checks::exit_with_message( - VCPKG_LINE_INFO, "Unexpected format of powershell-core version string: %s", output); + return {Strings::concat("Unexpected format of powershell-core version string: ", output), + expected_right_tag}; } output.erase(0, 11);