provide useful powershell error
This commit is contained in:
parent
ac30d516f7
commit
847a3b0061
@ -39,7 +39,7 @@ func (ps *PowerShellCmd) Run(fileContents string, params ...string) error {
|
||||
func (ps *PowerShellCmd) Output(fileContents string, params ...string) (string, error) {
|
||||
path, err := ps.getPowerShellPath()
|
||||
if err != nil {
|
||||
return "", err
|
||||
return "", fmt.Errorf("Cannot find PowerShell in the path")
|
||||
}
|
||||
|
||||
filename, err := saveScript(fileContents)
|
||||
|
Loading…
x
Reference in New Issue
Block a user