diff options
Diffstat (limited to 'cache/query.go')
-rw-r--r-- | cache/query.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/cache/query.go b/cache/query.go index 5be8f43d..198adfc9 100644 --- a/cache/query.go +++ b/cache/query.go @@ -12,6 +12,11 @@ type Query struct { OrderDirection } +// Return an identity query +func NewQuery() *Query { + return &Query{} +} + // ParseQuery parse a query DSL // // Ex: "status:open author:descartes sort:edit-asc" @@ -112,7 +117,7 @@ func (q *Query) parseNoFilter(query string) error { case "label": q.NoFilters = append(q.NoFilters, NoLabelFilter()) default: - return fmt.Errorf("unknown \"no\" filter") + return fmt.Errorf("unknown \"no\" filter %s", query) } return nil |