From e13dc345bea2716461c7379db63a09f08884d219 Mon Sep 17 00:00:00 2001 From: Chris Aubuchon Date: Wed, 9 Dec 2015 13:07:36 -0600 Subject: [PATCH] Indicate which configuration option failed to parse properly --- command/agent/command.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/command/agent/command.go b/command/agent/command.go index efec7f586..2d1b0a1cd 100644 --- a/command/agent/command.go +++ b/command/agent/command.go @@ -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