0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00

more error handling

This commit is contained in:
Eliot Horowitz 2009-11-27 23:30:31 -05:00
parent 11804c717c
commit 415f5e7fa8

View File

@ -175,6 +175,7 @@ public:
char line[ (1024 * 1024 * 4) + 128];
while ( *in ){
in->getline( line , BUF_SIZE );
uassert( "unknown error reading file" , ( in->rdstate() & ios_base::badbit ) == 0 );
log(1) << "got line:" << line << endl;
char * buf = line;