Skip to content

Commit

Permalink
(chocolateyGH-1859) Fix error message for missing 32-bit URL
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
easybe committed Jun 27, 2019
1 parent c57829c commit c3b4496
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c3b4496

Please sign in to comment.