Standardize error messages by removing config prefix

This commit is contained in:
andig 2020-07-29 14:10:49 +02:00
parent 3de1f3d072
commit 1e03a51eae
15 changed files with 23 additions and 31 deletions

View file

@ -70,7 +70,7 @@ func NewSocketProviderFromConfig(other map[string]interface{}) (*Socket, error)
if cc.Jq != "" {
op, err := gojq.Parse(cc.Jq)
if err != nil {
return nil, fmt.Errorf("config: invalid jq query: %s", p.jq)
return nil, fmt.Errorf("invalid jq query: %s", p.jq)
}
p.jq = op