Permalink
Browse files

better error message for old index

  • Loading branch information...
1 parent c1f0d3f commit 581980efa09ec2c6a516257c0a5ce4241e89e129 @erh erh committed Mar 2, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 db/index_geo2d.cpp
View
@@ -70,7 +70,7 @@ namespace mongo {
}
else {
cout << "GeoHash cons e : " << e << endl;
- assert(0);
+ uassert(13047,"wrong type for geo index. if you're using a pre-release version, need to rebuild index",0);
}
_fix();
}

0 comments on commit 581980e

Please sign in to comment.