Merge pull request #8825 from alrs/fix-powershell-err

common/powershell: Fix Dropped Error
This commit is contained in:
Megan Marsh 2020-03-02 16:32:43 -08:00 committed by GitHub
commit 6540891ca2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -112,7 +112,9 @@ func IsPowershellAvailable() (bool, string, error) {
func (ps *PowerShellCmd) getPowerShellPath() (string, error) { func (ps *PowerShellCmd) getPowerShellPath() (string, error) {
powershellAvailable, path, err := IsPowershellAvailable() powershellAvailable, path, err := IsPowershellAvailable()
if err != nil {
log.Fatalf("IsPowershellAvailable: %v", err)
}
if !powershellAvailable { if !powershellAvailable {
log.Fatal("Cannot find PowerShell in the path") log.Fatal("Cannot find PowerShell in the path")
return "", err return "", err