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

View file

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