common/powershell: fix dropped error

pull/8825/head
Lars Lehtonen 6 years ago
parent 0f9c3e2cb4
commit f808d1d968
No known key found for this signature in database
GPG Key ID: 8137D474EBCB04F2

@ -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…
Cancel
Save