Indicate which configuration option failed to parse properly

This commit is contained in:
Chris Aubuchon 2015-12-09 13:07:36 -06:00
parent 157baabb67
commit e13dc345be
1 changed files with 1 additions and 1 deletions

View File

@ -109,7 +109,7 @@ func (c *Command) readConfig() *Config {
if cmdConfig.Server.RetryInterval != "" {
dur, err := time.ParseDuration(cmdConfig.Server.RetryInterval)
if err != nil {
c.Ui.Error(fmt.Sprintf("Error: %s", err))
c.Ui.Error(fmt.Sprintf("Error parsing retry interval: %s", err))
return nil
}
cmdConfig.Server.retryInterval = dur