Skip to content

Commit

Permalink
Indicate which configuration option failed to parse properly
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisAubuchon committed Dec 9, 2015
1 parent 07563b9 commit 5336df6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion command/agent/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5336df6

Please sign in to comment.