diff options
| author | Mathias Stearn <mathias@10gen.com> | 2017-08-01 14:31:26 -0400 |
|---|---|---|
| committer | Mathias Stearn <mathias@10gen.com> | 2017-08-16 16:28:02 -0400 |
| commit | c593ea7bb9815ced064ad8aa7ffa206fa94757c4 (patch) | |
| tree | 38ca084a7db5d9de79c69d1384bdc1ee4d9cecad /src/mongo/util/net/socket_exception.cpp | |
| parent | 40036f67d0c15e2cd319e82f8c6a1e691fb74806 (diff) | |
| download | mongo-c593ea7bb9815ced064ad8aa7ffa206fa94757c4.tar.gz | |
SERVER-30580 Make DBException hold a Status
Diffstat (limited to 'src/mongo/util/net/socket_exception.cpp')
| -rw-r--r-- | src/mongo/util/net/socket_exception.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/util/net/socket_exception.cpp b/src/mongo/util/net/socket_exception.cpp index f913df5f4a9..b5899454584 100644 --- a/src/mongo/util/net/socket_exception.cpp +++ b/src/mongo/util/net/socket_exception.cpp @@ -75,7 +75,7 @@ bool SocketException::shouldPrint() const { std::string SocketException::toString() const { std::stringstream ss; - ss << _ei.code << " socket exception [" << getStringType(_type) << "] "; + ss << _status.codeString() << " socket exception [" << getStringType(_type) << "] "; if (_server.size()) ss << "server [" << _server << "] "; |
