summaryrefslogtreecommitdiff
path: root/db/dbeval.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'db/dbeval.cpp')
-rw-r--r--db/dbeval.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/db/dbeval.cpp b/db/dbeval.cpp
index e6c4e96c6e0..d9475346428 100644
--- a/db/dbeval.cpp
+++ b/db/dbeval.cpp
@@ -108,8 +108,11 @@ namespace mongo {
result.append("retval", s->getNumber("return"));
else if ( type == String )
result.append("retval", s->getString("return").c_str());
- else if ( type == Bool ) {
+ else if ( type == Bool )
result.appendBool("retval", s->getBoolean("return"));
+ else
+ uassert( "can't handle return type from db.eval" , 0 );
+
}
return true;