fixed typo in error message

This commit is contained in:
Deepak Thukral 2010-11-10 21:02:59 +01:00
parent c6058fafed
commit 89646439e7

View File

@ -78,7 +78,7 @@ class SimplificationVisitor(QNodeVisitor):
# to a single field # to a single field
intersection = ops.intersection(query_ops) intersection = ops.intersection(query_ops)
if intersection: if intersection:
msg = 'Duplicate query contitions: ' msg = 'Duplicate query conditions: '
raise InvalidQueryError(msg + ', '.join(intersection)) raise InvalidQueryError(msg + ', '.join(intersection))
query_ops.update(ops) query_ops.update(ops)
@ -179,7 +179,7 @@ class QueryCompilerVisitor(QNodeVisitor):
# once to a single field # once to a single field
intersection = current_ops.intersection(new_ops) intersection = current_ops.intersection(new_ops)
if intersection: if intersection:
msg = 'Duplicate query contitions: ' msg = 'Duplicate query conditions: '
raise InvalidQueryError(msg + ', '.join(intersection)) raise InvalidQueryError(msg + ', '.join(intersection))
# Right! We've got two non-overlapping dicts of operations! # Right! We've got two non-overlapping dicts of operations!