diff options
author | Eliot Horowitz <eliot@10gen.com> | 2009-12-28 16:43:43 -0500 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2009-12-28 16:43:43 -0500 |
commit | 0ab8149a8e9e900b63ee28b9590a249578339376 (patch) | |
tree | 564a5c516b7c308964b79ea761e4800efe26d252 /scripting/engine_v8.cpp | |
parent | 95137f262c2a57831dccf058428a2f64e900496e (diff) | |
download | mongo-0ab8149a8e9e900b63ee28b9590a249578339376.tar.gz |
uassert/massert take error code SERVER-112
Diffstat (limited to 'scripting/engine_v8.cpp')
-rw-r--r-- | scripting/engine_v8.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/scripting/engine_v8.cpp b/scripting/engine_v8.cpp index 1eda3d51667..3c736b32501 100644 --- a/scripting/engine_v8.cpp +++ b/scripting/engine_v8.cpp @@ -166,7 +166,7 @@ namespace mongo { if ( v->IsNumber() ) return NumberDouble; if ( v->IsExternal() ){ - uassert( "can't handle external yet" , 0 ); + uassert( 10230 , "can't handle external yet" , 0 ); return -1; } if ( v->IsDate() ) @@ -205,7 +205,7 @@ namespace mongo { Handle<Value> v = get( field ); if ( v->IsNull() || v->IsUndefined() ) return BSONObj(); - uassert( "not an object" , v->IsObject() ); + uassert( 10231 , "not an object" , v->IsObject() ); return v8ToMongo( v->ToObject() ); } @@ -252,7 +252,7 @@ namespace mongo { } Handle<Value> f = _global->Get( v8::String::New( fn.c_str() ) ); - uassert( "not a func" , f->IsFunction() ); + uassert( 10232 , "not a func" , f->IsFunction() ); _funcs.push_back( f ); return num; } @@ -325,7 +325,7 @@ namespace mongo { if (reportError) log() << _error << endl; if ( assertOnError ) - uassert( _error , 0 ); + uassert( 10233 , _error , 0 ); return false; } @@ -335,7 +335,7 @@ namespace mongo { if ( reportError ) log() << _error << endl; if ( assertOnError ) - uassert( _error , 0 ); + uassert( 10234 , _error , 0 ); return false; } |