From f808d1d96802a7fdde94e6283dcf334b73cf40a8 Mon Sep 17 00:00:00 2001 From: Lars Lehtonen Date: Mon, 2 Mar 2020 14:45:22 -0800 Subject: [PATCH] common/powershell: fix dropped error --- common/powershell/powershell.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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