better debugging

This commit is contained in:
Eliot Horowitz
2009-10-01 01:25:53 -04:00
parent f7bfd1192c
commit aaf8754d31

View File

@@ -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 ){