summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Gleeson <matt@gleeson.org>2013-07-18 17:12:56 -0700
committerMatt Gleeson <mgleeson@atlassian.com>2013-07-18 17:14:12 -0700
commit6676279fd29e6692908a9f057ad596c02a2ee79f (patch)
treec563d5834fa2bd32573aca106ed5cdbff4211b1b
parentc0c643085d730d182748ee93941103bac5979af7 (diff)
downloadchef-zero-6676279fd29e6692908a9f057ad596c02a2ee79f.tar.gz
fixup end_range typos
-rw-r--r--lib/chef_zero/solr/solr_parser.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef_zero/solr/solr_parser.rb b/lib/chef_zero/solr/solr_parser.rb
index 6cf955e..e237025 100644
--- a/lib/chef_zero/solr/solr_parser.rb
+++ b/lib/chef_zero/solr/solr_parser.rb
@@ -142,7 +142,7 @@ module ChefZero
right = next_token
parse_error(right, "Expected left term in range query") if !right
end_range = next_token
- parse_error(right, "Expected end range '#{expected_end_range}") if !['{', '['].include?(end_range)
+ parse_error(right, "Expected end range '#{end_range}") if !['}', ']'].include?(end_range)
Query::RangeQuery.new(left, right, token == '[', end_range == ']')
elsif token == '('