summaryrefslogtreecommitdiff
path: root/shell/query.js
diff options
context:
space:
mode:
authorAaron <aaron@10gen.com>2009-02-04 17:10:48 -0500
committerAaron <aaron@10gen.com>2009-02-04 17:10:48 -0500
commit875d81cdd1559cf4ea50be051a1af15a4977305c (patch)
tree3a8ce2728475623c643dbc3a6fcf1b29b6360824 /shell/query.js
parent218987d617053386eebff97d00efd6e05d74d20d (diff)
downloadmongo-875d81cdd1559cf4ea50be051a1af15a4977305c.tar.gz
Print count failure message readably
Diffstat (limited to 'shell/query.js')
-rw-r--r--shell/query.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/query.js b/shell/query.js
index f4552d26c7b..36e53ca5dd4 100644
--- a/shell/query.js
+++ b/shell/query.js
@@ -108,7 +108,7 @@ DBQuery.prototype.count = function(){
var res = this._db.runCommand( cmd );
if( res && res.n != null ) return res.n;
- throw { exception: "count failed", res: res };
+ throw "count failed: " + tojson( res );
}
DBQuery.prototype.length = function(){