Fixed the issue for no formatting directive in Errorf call

This commit is contained in:
Henry Hu 2016-02-03 12:23:52 +08:00
parent 60bb6a0acf
commit c286ed463e
1 changed files with 2 additions and 2 deletions

View File

@ -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)