Skip to content

Commit

Permalink
Better error message for oversized message
Browse files Browse the repository at this point in the history
  • Loading branch information
RedBeard0531 committed Jan 17, 2013
1 parent 4a8f561 commit 3085f8f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/mongo/util/net/message_port.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,8 @@ namespace mongo {
send( s.c_str(), s.size(), "http" );
return false;
}
LOG(0) << "recv(): message len " << len << " is too large" << len << endl;
LOG(0) << "recv(): message len " << len << " is too large. "
<< "Max is " << MaxMessageSizeBytes << endl;
return false;
}

Expand Down

0 comments on commit 3085f8f

Please sign in to comment.