diff options
author | Aaron <aaron@10gen.com> | 2009-02-04 17:10:48 -0500 |
---|---|---|
committer | Aaron <aaron@10gen.com> | 2009-02-04 17:10:48 -0500 |
commit | 875d81cdd1559cf4ea50be051a1af15a4977305c (patch) | |
tree | 3a8ce2728475623c643dbc3a6fcf1b29b6360824 /shell/query.js | |
parent | 218987d617053386eebff97d00efd6e05d74d20d (diff) | |
download | mongo-875d81cdd1559cf4ea50be051a1af15a4977305c.tar.gz |
Print count failure message readably
Diffstat (limited to 'shell/query.js')
-rw-r--r-- | shell/query.js | 2 |
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(){ |