0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00
This commit is contained in:
Dwight 2010-06-02 16:45:16 -04:00
parent afd64fa94e
commit ac3a697075

View File

@ -503,10 +503,10 @@ namespace mongo {
free( dst );
if ( ! res ){
log() << "decode failed. probably invalid utf-8 string [" << c << "]" << endl;
tlog() << "decode failed. probably invalid utf-8 string [" << c << "]" << endl;
jsval v;
if ( JS_GetPendingException( _context , &v ) )
log() << "\t why: " << toString( v ) << endl;
tlog() << "\t why: " << toString( v ) << endl;
throw InvalidUTF8Exception();
}