better debugging
This commit is contained in:
@@ -290,10 +290,9 @@ namespace mongo {
|
||||
Result::cur->_asserts++;
|
||||
Result::cur->_fails++;
|
||||
|
||||
stringstream ss;
|
||||
ss << "ASSERT FAILED! " << file << ":" << line << endl;
|
||||
log() << ss.str() << endl;
|
||||
Result::cur->_messages.push_back( ss.str() );
|
||||
MyAssertionException * e = new MyAssertionException();
|
||||
e->ss << "ASSERT FAILED! " << file << ":" << line << endl;
|
||||
throw e;
|
||||
}
|
||||
|
||||
void fail( const char * exp , const char * file , unsigned line ){
|
||||
|
||||
Reference in New Issue
Block a user