Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit d7bc971

Browse files
committed
Better error message
1 parent 506b2dc commit d7bc971

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vscode-powershell.build.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,14 @@ function Assert-Pwsh ([string]$RequiredPowerShellVersion) {
5353
[Version]$pwshVersion = (Get-Command -Name pwsh -CommandType Application).Version
5454
} catch {
5555
if ($InstallPrerequisites) {
56-
throw [NotImplementedException]'Automatic installation of Pwsh is not yet supported.'
56+
throw [NotImplementedException]'Pwsh not found but automatic installation is not yet supported.'
5757
}
5858
Write-Error "PowerShell (pwsh) not found on your system. Please install PowerShell $RequiredPowerShellVersion or higher and ensure it is available in your `$env:PATH environment variable"
5959
return
6060
}
6161
if ($pwshVersion -lt $RequiredPowerShellVersion) {
6262
if ($InstallPrerequisites) {
63-
throw [NotImplementedException]'Automatic installation of Pwsh is not yet supported.'
63+
throw [NotImplementedException]"Pwsh $pwshVersion less than $requiredPowershell Version but Automatic installation of Pwsh is not yet supported."
6464
}
6565
Write-Error "PowerShell version $pwshVersion is not or no longer supported. Please install PowerShell $RequiredPowerShellVersion or higher"
6666
return

0 commit comments

Comments
 (0)