summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMili Verma <mili.verma@isode.com>2015-06-23 13:27:08 (GMT)
committerKevin Smith <kevin.smith@isode.com>2015-06-29 14:52:08 (GMT)
commitac45f360be049242a89ae80258e4ea8350f909ba (patch)
tree3e3b5fb80edaaa867adfb7873550d934f0b60298 /Swiften/Client/CoreClient.cpp
parentea41bd07a0e014c12cce144b421abac9f21d1269 (diff)
downloadswift-ac45f360be049242a89ae80258e4ea8350f909ba.zip
swift-ac45f360be049242a89ae80258e4ea8350f909ba.tar.bz2
Pass an optional error code
This patch creates and passes on an optional boost::system::error_code variable which contains more error info which can be displayed in case of an error. Test-information: Tested using WIP code on Windows. Change-Id: I285b8aec5e9c00d3a8e0d8cc0d5e7b4c5d94c099
Diffstat (limited to 'Swiften/Client/CoreClient.cpp')
-rw-r--r--Swiften/Client/CoreClient.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Swiften/Client/CoreClient.cpp b/Swiften/Client/CoreClient.cpp
index c91e5c5..baebd4a 100644
--- a/Swiften/Client/CoreClient.cpp
+++ b/Swiften/Client/CoreClient.cpp
@@ -259,6 +259,7 @@ void CoreClient::handleSessionFinished(boost::shared_ptr<Error> error) {
clientError = ClientError(ClientError::StreamError);
break;
}
+ clientError.setErrorCode(actualError->errorCode);
}
else if (boost::shared_ptr<TLSError> actualError = boost::dynamic_pointer_cast<TLSError>(error)) {
switch(actualError->getType()) {