Fix un-saved error on chdir

This commit is contained in:
Pam Selle 2020-10-13 14:22:25 -04:00
parent fcae49611c
commit 328baaad84
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