aboutsummaryrefslogtreecommitdiffstats
path: root/common/rfb/CConnection.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 /common/rfb/CConnection.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 'common/rfb/CConnection.cxx')
-rw-r--r--common/rfb/CConnection.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/rfb/CConnection.cxx b/common/rfb/CConnection.cxx
index 61ef7d98..7a9570ad 100644
--- a/common/rfb/CConnection.cxx
+++ b/common/rfb/CConnection.cxx
@@ -388,7 +388,7 @@ void CConnection::close()
try {
decoder.flush();
} catch (rdr::Exception& e) {
- vlog.error("%s", e.str());
+ vlog.error("%s", e.what());
}
setFramebuffer(nullptr);