aboutsummaryrefslogtreecommitdiffstats
path: root/win/rfb_win32/SocketManager.cxx
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2024-09-02 17:03:10 +0200
committerPierre Ossman <ossman@cendio.se>2024-11-06 21:06:27 +0100
commitf25de739ea359c2843a596457bcd22a28175b7a4 (patch)
treeae7bed3ed0d7e61938922540c7abdafbaa7e8938 /win/rfb_win32/SocketManager.cxx
parentbdeaeebd48ad39898b804e0083ed1456cc64f24b (diff)
downloadtigervnc-f25de739ea359c2843a596457bcd22a28175b7a4.tar.gz
tigervnc-f25de739ea359c2843a596457bcd22a28175b7a4.zip
Use what() to access exception description
Harmonize with the standard C++ exceptions.
Diffstat (limited to 'win/rfb_win32/SocketManager.cxx')
-rw-r--r--win/rfb_win32/SocketManager.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/win/rfb_win32/SocketManager.cxx b/win/rfb_win32/SocketManager.cxx
index 2bc2f53e..cdc65409 100644
--- a/win/rfb_win32/SocketManager.cxx
+++ b/win/rfb_win32/SocketManager.cxx
@@ -80,7 +80,7 @@ void SocketManager::addListener(network::SocketListener* sock_,
if (event)
WSACloseEvent(event);
delete sock_;
- vlog.error("%s", e.str());
+ vlog.error("%s", e.what());
throw;
}
@@ -268,7 +268,7 @@ void SocketManager::processEvent(HANDLE event) {
if (WSAEventSelect(ci.sock->getFd(), event, eventMask) == SOCKET_ERROR)
throw rdr::SocketException("unable to re-enable WSAEventSelect:%u", WSAGetLastError());
} catch (rdr::Exception& e) {
- vlog.error("%s", e.str());
+ vlog.error("%s", e.what());
remSocket(ci.sock);
}
}