Merge pull request #6817 from hashicorp/fix_6761

provide useful powershell error
This commit is contained in:
Megan Marsh 2018-10-12 11:14:24 -07:00 committed by GitHub
commit cee0b814fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -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)