aboutsummaryrefslogtreecommitdiffstats
path: root/win/vncconfig/Legacy.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/vncconfig/Legacy.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/vncconfig/Legacy.cxx')
-rw-r--r--win/vncconfig/Legacy.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/win/vncconfig/Legacy.cxx b/win/vncconfig/Legacy.cxx
index 9300bb05..3dae1c99 100644
--- a/win/vncconfig/Legacy.cxx
+++ b/win/vncconfig/Legacy.cxx
@@ -146,7 +146,7 @@ void LegacyPage::LoadPrefs()
vlog.info("loading Default prefs");
LoadUserPrefs(userKey);
} catch(rdr::Exception& e) {
- vlog.error("error reading Default settings:%s", e.str());
+ vlog.error("error reading Default settings:%s", e.what());
}
// Open the local, user-specific settings
@@ -157,7 +157,7 @@ void LegacyPage::LoadPrefs()
vlog.info("loading local User prefs");
LoadUserPrefs(userKey);
} catch(rdr::Exception& e) {
- vlog.error("error reading local User settings:%s", e.str());
+ vlog.error("error reading local User settings:%s", e.what());
}
// Open the user's own settings
@@ -168,7 +168,7 @@ void LegacyPage::LoadPrefs()
vlog.info("loading global User prefs");
LoadUserPrefs(userKey);
} catch(rdr::Exception& e) {
- vlog.error("error reading global User settings:%s", e.str());
+ vlog.error("error reading global User settings:%s", e.what());
}
}
}