Skip to content

Commit e565a0a

Browse files
committed
Improved error message
1 parent 35b91d3 commit e565a0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

requirejson/json.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ func (obj *JQObject) Query(jqQuery string) *JQObject {
4242
require.NoError(obj.t, err)
4343
iter := q.Run(obj.data)
4444
data, ok := iter.Next()
45-
require.True(obj.t, ok)
45+
require.True(obj.t, ok, "The json query produced no results")
4646
return &JQObject{t: obj.t, data: data}
4747
}
4848

0 commit comments

Comments
 (0)