diff options
author | Eliot Horowitz <eliot@10gen.com> | 2009-11-19 21:40:11 -0500 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2009-11-19 21:40:11 -0500 |
commit | 1c136572d66a7fc103026cbac7b5b053200e940c (patch) | |
tree | 1482a3e1b7e97ca14925705e041b698536e4b1e1 /shell | |
parent | 689c63ab501c9ee5117744ff222f245ce53d52c0 (diff) | |
download | mongo-1c136572d66a7fc103026cbac7b5b053200e940c.tar.gz |
better error message
Diffstat (limited to 'shell')
-rw-r--r-- | shell/collection.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/collection.js b/shell/collection.js index 03eb824d1d0..9a9127073ba 100644 --- a/shell/collection.js +++ b/shell/collection.js @@ -138,7 +138,7 @@ DBCollection.prototype.findOne = function( query , fields ){ DBCollection.prototype.insert = function( obj , _allow_dot ){ if ( ! obj ) - throw "no object!"; + throw "no object passed to insert!"; if ( ! _allow_dot ) { this._validateForStorage( obj ); } |