diff options
author | Eliot Horowitz <eliot@10gen.com> | 2011-05-11 02:45:59 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2011-05-11 02:45:59 -0400 |
commit | 5d5a2bb16f8b8413f3b5a4502f93364cf725814f (patch) | |
tree | c5128759ad4cfc693c05be3e014a71da76d5828b | |
parent | dc54306029630178fa6602f6518a9e3c98505e3a (diff) | |
download | mongo-5d5a2bb16f8b8413f3b5a4502f93364cf725814f.tar.gz |
nicer debugging message
-rw-r--r-- | db/queryoptimizer.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/db/queryoptimizer.cpp b/db/queryoptimizer.cpp index 0b9dce766fc..4eb2a99bf17 100644 --- a/db/queryoptimizer.cpp +++ b/db/queryoptimizer.cpp @@ -914,7 +914,8 @@ doneCheckOrder: } if ( !id ) { - errmsg = (string)"no index found for specified keyPattern: " + keyPattern.toString(); + errmsg = str::stream() << "no index found for specified keyPattern: " << keyPattern.toString() + << " min: " << min << " max: " << max; return 0; } |