Merge pull request #8825 from alrs/fix-powershell-err
common/powershell: Fix Dropped Error
This commit is contained in:
commit
6540891ca2
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue