You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
throw [NotImplementedException]'Pwsh not found but automatic installation is not yet supported.'
54
+
}
55
+
[Version]$pwshVersion=$pwsh.Version
53
56
} catch {
54
57
if ($InstallPrerequisites) {
55
58
throw [NotImplementedException]"Pwsh not found but automatic installation is not yet supported. Error: $PSItem"
56
59
}
57
-
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"
60
+
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. $PSItem"
58
61
return
59
62
}
60
63
if ($pwshVersion-lt$RequiredPowerShellVersion) {
61
64
if ($InstallPrerequisites) {
62
65
throw [NotImplementedException]"Pwsh $pwshVersion less than $requiredPowershell Version but Automatic installation of Pwsh is not yet supported."
63
66
}
64
-
Write-Error"PowerShell version $pwshVersion is not or no longer supported. Please install PowerShell $RequiredPowerShellVersion or higher"
67
+
Write-Error"PowerShell version $pwshVersion is not or no longer supported. Please install PowerShell $RequiredPowerShellVersion or higher. $PSItem"
65
68
return
66
69
}
67
70
Write-Debug"PREREQUISITE: Detected supported PowerShell version $pwshVersion at or above minimum $RequiredPowerShellVersion"
0 commit comments