summaryrefslogtreecommitdiff
path: root/src/mongo/util/net/socket_exception.cpp
diff options
context:
space:
mode:
authorMathias Stearn <mathias@10gen.com>2017-08-01 14:31:26 -0400
committerMathias Stearn <mathias@10gen.com>2017-08-16 16:28:02 -0400
commitc593ea7bb9815ced064ad8aa7ffa206fa94757c4 (patch)
tree38ca084a7db5d9de79c69d1384bdc1ee4d9cecad /src/mongo/util/net/socket_exception.cpp
parent40036f67d0c15e2cd319e82f8c6a1e691fb74806 (diff)
downloadmongo-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.cpp2
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 << "] ";