aboutsummaryrefslogtreecommitdiffstats
path: root/win/rfb_win32/SDisplay.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/SDisplay.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/SDisplay.cxx')
-rw-r--r--win/rfb_win32/SDisplay.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/win/rfb_win32/SDisplay.cxx b/win/rfb_win32/SDisplay.cxx
index 0ec5e231..ea64dbe9 100644
--- a/win/rfb_win32/SDisplay.cxx
+++ b/win/rfb_win32/SDisplay.cxx
@@ -202,7 +202,7 @@ void SDisplay::startCore() {
if (tryMethod == 0)
throw rdr::Exception("unable to access desktop");
tryMethod--;
- vlog.error("%s", e.str());
+ vlog.error("%s", e.what());
}
}
vlog.info("Started %s", core->methodName());
@@ -292,7 +292,7 @@ void SDisplay::restartCore() {
// to cause the server to stop() the desktop.
// Otherwise, the SDesktop is in an inconsistent state
// and the server will crash.
- server->closeClients(e.str());
+ server->closeClients(e.what());
}
}
@@ -401,7 +401,7 @@ SDisplay::processEvent(HANDLE event) {
try {
core->flushUpdates();
} catch (rdr::Exception& e) {
- vlog.error("%s", e.str());
+ vlog.error("%s", e.what());
restartCore();
return;
}