We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 35b91d3 commit e565a0aCopy full SHA for e565a0a
requirejson/json.go
@@ -42,7 +42,7 @@ func (obj *JQObject) Query(jqQuery string) *JQObject {
42
require.NoError(obj.t, err)
43
iter := q.Run(obj.data)
44
data, ok := iter.Next()
45
- require.True(obj.t, ok)
+ require.True(obj.t, ok, "The json query produced no results")
46
return &JQObject{t: obj.t, data: data}
47
}
48
0 commit comments