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:
parent
11804c717c
commit
415f5e7fa8
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user