From 7e408cc50ba6eb673257eaf8724eddfec0311767 Mon Sep 17 00:00:00 2001 From: Ezra Buehler Date: Thu, 27 Jun 2019 09:40:39 +0200 Subject: [PATCH] (GH-1859) Fix error message for missing 32-bit URL For 64-bit-only packages, when running Get-ChocolateyWebFile.ps1 on a 64-bit system having `$Env:ChocolateyForceX86 = $true`, the error message would read: "This package does not support 64 bit architecture." Instead, we should inform that the package does not support 32-bit systems. --- .../helpers/functions/Get-ChocolateyWebFile.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/chocolatey.resources/helpers/functions/Get-ChocolateyWebFile.ps1 b/src/chocolatey.resources/helpers/functions/Get-ChocolateyWebFile.ps1 index 246cef1248..1de01abb0c 100644 --- a/src/chocolatey.resources/helpers/functions/Get-ChocolateyWebFile.ps1 +++ b/src/chocolatey.resources/helpers/functions/Get-ChocolateyWebFile.ps1 @@ -262,7 +262,7 @@ param( # If we're on 32 bit or attempting to force 32 bit and there is no # 32 bit url, we need to throw an error. if ($url -eq $null -or $url -eq '') { - throw "This package does not support $bitWidth bit architecture." + throw "This package does not support $bitPackage architecture." } # determine if the url can be SSL/TLS