Merge pull request #26575 from hashicorp/pselle/chdir-fix

Fix un-saved error on chdir
This commit is contained in:
Pam Selle 2020-10-13 16:02:49 -04:00 committed by GitHub
commit 31805ef04c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -228,7 +228,7 @@ func wrappedMain() int {
return 1
}
if overrideWd != "" {
os.Chdir(overrideWd)
err := os.Chdir(overrideWd)
if err != nil {
Ui.Error(fmt.Sprintf("Error handling -chdir option: %s", err))
return 1