From c286ed463e5fdb36a073e350e34d9f09783ddc82 Mon Sep 17 00:00:00 2001 From: Henry Hu Date: Wed, 3 Feb 2016 12:23:52 +0800 Subject: [PATCH] Fixed the issue for no formatting directive in Errorf call --- plugins/inputs/exec/exec.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)