diff --git a/plugins/inputs/exec/exec.go b/plugins/inputs/exec/exec.go index 171c5ed5e..1697cb936 100644 --- a/plugins/inputs/exec/exec.go +++ b/plugins/inputs/exec/exec.go @@ -122,7 +122,7 @@ func (e *Exec) initConfig() error { c := NewConfig(e.Commands, e.Tags, e.Templates, e.Separator) c.WithDefaults() if err := c.Validate(); err != nil { - return fmt.Errorf("exec configuration is error! ", err.Error()) + return fmt.Errorf("exec configuration is error: %s ", err.Error()) } e.config = c @@ -133,7 +133,7 @@ func (e *Exec) initConfig() error { Separator: e.config.Separator}) if err != nil { - return fmt.Errorf("exec input parser config is error! ", err.Error()) + return fmt.Errorf("exec input parser config is error: %s ", err.Error()) } e.encodingParser = encoding.NewParser(graphiteParser)