Skip to content

Commit

Permalink
SERVER-9341 make log message explicit about format accepted with 2d g…
Browse files Browse the repository at this point in the history
…eoNear
  • Loading branch information
monkey101 committed Jul 1, 2013
1 parent 59878c0 commit a7079c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mongo/db/geo/hash.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ namespace mongo {

BSONElement y = i.next();
uassert(13026,
str::stream() << "geo values have to be numbers"
str::stream() << "geo values must be 'legacy coordinate pairs' for 2d indexes"
<< causedBy(src ? (*src).toString() :
BSON_ARRAY(x << y).toString()),
x.isNumber() && y.isNumber());
Expand Down

0 comments on commit a7079c5

Please sign in to comment.