Standardize error messages by removing config prefix
This commit is contained in:
parent
3de1f3d072
commit
1e03a51eae
15 changed files with 23 additions and 31 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue