Skip to content

Commit cbfaac1

Browse files
committed
Even better error
1 parent f6f8e7e commit cbfaac1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vscode-powershell.build.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ function Assert-Pwsh ([string]$RequiredPowerShellVersion) {
5454
[Version]$pwshVersion = (Get-Command -Name pwsh -CommandType Application).Version
5555
} catch {
5656
if ($InstallPrerequisites) {
57-
throw [NotImplementedException]'Pwsh not found but automatic installation is not yet supported.'
57+
throw [NotImplementedException]"Pwsh not found but automatic installation is not yet supported. Error: $PSItem"
5858
}
5959
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"
6060
return

0 commit comments

Comments
 (0)