Skip to content

Commit

Permalink
common/powershell: fix dropped error
Browse files Browse the repository at this point in the history
  • Loading branch information
alrs authored and Joshua Foster committed Mar 3, 2020
1 parent e7e60c7 commit 130a4a6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion common/powershell/powershell.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 130a4a6

Please sign in to comment.