Fixed the issue for no formatting directive in Errorf call
This commit is contained in:
parent
60bb6a0acf
commit
c286ed463e
|
@ -122,7 +122,7 @@ func (e *Exec) initConfig() error {
|
||||||
c := NewConfig(e.Commands, e.Tags, e.Templates, e.Separator)
|
c := NewConfig(e.Commands, e.Tags, e.Templates, e.Separator)
|
||||||
c.WithDefaults()
|
c.WithDefaults()
|
||||||
if err := c.Validate(); err != nil {
|
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
|
e.config = c
|
||||||
|
@ -133,7 +133,7 @@ func (e *Exec) initConfig() error {
|
||||||
Separator: e.config.Separator})
|
Separator: e.config.Separator})
|
||||||
|
|
||||||
if err != nil {
|
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)
|
e.encodingParser = encoding.NewParser(graphiteParser)
|
||||||
|
|
Loading…
Reference in New Issue