diff options
author | Eliot Horowitz <eliot@10gen.com> | 2009-08-16 13:30:51 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2009-08-16 13:30:51 -0400 |
commit | b2d07883fa3cb10fd9c9f7c1be45511ea37b7b1b (patch) | |
tree | fa9c827c029c8d3d62ace7359add978ac202c342 /db/dbeval.cpp | |
parent | bf34e9dec63cc4c218e76c6368864ed671d41e97 (diff) | |
download | mongo-b2d07883fa3cb10fd9c9f7c1be45511ea37b7b1b.tar.gz |
uassert instead assert for bad eval thing
Diffstat (limited to 'db/dbeval.cpp')
-rw-r--r-- | db/dbeval.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/db/dbeval.cpp b/db/dbeval.cpp index 8d823793840..f7fff2517c0 100644 --- a/db/dbeval.cpp +++ b/db/dbeval.cpp @@ -38,7 +38,7 @@ namespace mongo { bool dbEval(const char *ns, BSONObj& cmd, BSONObjBuilder& result, string& errmsg) { BSONElement e = cmd.firstElement(); - assert( e.type() == Code || e.type() == CodeWScope || e.type() == String ); + uassert( "eval needs Code" , e.type() == Code || e.type() == CodeWScope || e.type() == String ); const char *code = 0; switch ( e.type() ) { |