From 64b33ee522375a8dc15be2875dfb7db4502259b0 Mon Sep 17 00:00:00 2001 From: Antonin Kral Date: Sat, 18 Jun 2011 21:24:41 +0200 Subject: Imported Upstream version 1.8.2 --- scripting/engine.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripting') diff --git a/scripting/engine.cpp b/scripting/engine.cpp index 60e56ae..f9be639 100644 --- a/scripting/engine.cpp +++ b/scripting/engine.cpp @@ -189,12 +189,12 @@ namespace mongo { set thisTime; while ( c->more() ) { - BSONObj o = c->next(); + BSONObj o = c->nextSafe(); BSONElement n = o["_id"]; BSONElement v = o["value"]; - uassert( 10209 , "name has to be a string" , n.type() == String ); + uassert( 10209 , str::stream() << "name has to be a string: " << n , n.type() == String ); uassert( 10210 , "value has to be set" , v.type() != EOO ); setElement( n.valuestr() , v ); -- cgit v1.2.3