0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-11-30 09:06:21 +01:00

attempt clean up ernoodesc on windows

This commit is contained in:
dwight 2010-07-28 16:01:28 -04:00
parent 684486e7e0
commit bed8c99ab7
2 changed files with 6 additions and 2 deletions

View File

@ -389,7 +389,11 @@ namespace mongo {
NULL);
if( errorText ) {
string x = toUtf8String(errorText);
s << x;
for( string::iterator i = x.begin(); i != x.end(); i++ ) {
if( *i == '\n' || *i == '\r' )
break;
s << *i;
}
LocalFree(errorText);
}
else

View File

@ -576,7 +576,7 @@ namespace mongo {
if ( ret == -1 ) {
int e = errno;
if ( e != EAGAIN || _timeout == 0 ) {
log(_logLevel) << "MessagingPort recv() " << errnoWithDescription(e) << " " << farEnd.toString()<<endl;
log(_logLevel) << "MessagingPort recv() " << errnoWithDescription(e) << " " << farEnd.toString() <<endl;
throw SocketException( SocketException::RECV_ERROR );
} else {
if ( !serverAlive( farEnd.toString() ) ) {