diff --git a/common/powershell/powershell.go b/common/powershell/powershell.go index a6a90fe69..3d899ffce 100644 --- a/common/powershell/powershell.go +++ b/common/powershell/powershell.go @@ -112,7 +112,9 @@ func IsPowershellAvailable() (bool, string, error) { func (ps *PowerShellCmd) getPowerShellPath() (string, error) { powershellAvailable, path, err := IsPowershellAvailable() - + if err != nil { + log.Fatalf("IsPowershellAvailable: %v", err) + } if !powershellAvailable { log.Fatal("Cannot find PowerShell in the path") return "", err