Skip to content

Commit

Permalink
An error was being returned when an empty response is expected.
Browse files Browse the repository at this point in the history
When testing inequality value vars with non-matching values, the
response was sent as an error although it should return empty result
if the query has correct syntax.

Closes #2610
  • Loading branch information
srfrog committed Sep 25, 2018
1 parent a4bd06f commit 4ac07b2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion query/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -1634,7 +1634,8 @@ func (sg *SubGraph) replaceVarInFunc() error {

func (sg *SubGraph) ApplyIneqFunc() error {
if sg.Params.uidToVal == nil {
return x.Errorf("Expected a valid value map. But got empty.")
x.Println("Expected a valid value map. But got empty.")
return nil
}
var typ types.TypeID
for _, v := range sg.Params.uidToVal {
Expand Down

0 comments on commit 4ac07b2

Please sign in to comment.