aboutsummaryrefslogtreecommitdiffstats
path: root/vncviewer/ServerDialog.cxx
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2024-08-29 17:22:51 +0200
committerPierre Ossman <ossman@cendio.se>2024-08-29 17:23:56 +0200
commit9df4f39c77aa66da992c7632d4ad5847e63d9f16 (patch)
treeda3a51f071cbcda42bbe07ee4e919e994c0a5449 /vncviewer/ServerDialog.cxx
parentedee4db8d1fd85495f189293041311bfff56d23c (diff)
downloadtigervnc-9df4f39c77aa66da992c7632d4ad5847e63d9f16.tar.gz
tigervnc-9df4f39c77aa66da992c7632d4ad5847e63d9f16.zip
Improve error messages for base directory creation
Diffstat (limited to 'vncviewer/ServerDialog.cxx')
-rw-r--r--vncviewer/ServerDialog.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/vncviewer/ServerDialog.cxx b/vncviewer/ServerDialog.cxx
index 3bce2b51..d51b8713 100644
--- a/vncviewer/ServerDialog.cxx
+++ b/vncviewer/ServerDialog.cxx
@@ -317,7 +317,7 @@ void ServerDialog::loadServerHistory()
const char* stateDir = os::getvncstatedir();
if (stateDir == nullptr)
- throw Exception(_("Could not obtain the state directory path"));
+ throw Exception(_("Could not determine VNC state directory path"));
char filepath[PATH_MAX];
snprintf(filepath, sizeof(filepath), "%s/%s", stateDir, SERVER_HISTORY);
@@ -383,7 +383,7 @@ void ServerDialog::saveServerHistory()
const char* stateDir = os::getvncstatedir();
if (stateDir == nullptr)
- throw Exception(_("Could not obtain the state directory path"));
+ throw Exception(_("Could not determine VNC state directory path"));
char filepath[PATH_MAX];
snprintf(filepath, sizeof(filepath), "%s/%s", stateDir, SERVER_HISTORY);