summaryrefslogtreecommitdiff
path: root/db/dbeval.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'db/dbeval.cpp')
-rw-r--r--db/dbeval.cpp2
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() ) {