mirror of
https://github.com/mikefarah/yq.git
synced 2025-01-24 14:45:39 +00:00
replace error creation
This commit is contained in:
parent
f168172bf4
commit
6908161f1f
@ -1,7 +1,7 @@
|
||||
package yqlib
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"errors"
|
||||
)
|
||||
|
||||
func errorOperator(d *dataTreeNavigator, context Context, expressionNode *ExpressionNode) (Context, error) {
|
||||
@ -16,5 +16,5 @@ func errorOperator(d *dataTreeNavigator, context Context, expressionNode *Expres
|
||||
if rhs.MatchingNodes.Len() > 0 {
|
||||
errorMessage = rhs.MatchingNodes.Front().Value.(*CandidateNode).Value
|
||||
}
|
||||
return Context{}, fmt.Errorf(errorMessage)
|
||||
return Context{}, errors.New(errorMessage)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user