aboutsummaryrefslogtreecommitdiffstats
path: root/unix/vncpasswd
diff options
context:
space:
mode:
Diffstat (limited to 'unix/vncpasswd')
-rw-r--r--unix/vncpasswd/vncpasswd.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/unix/vncpasswd/vncpasswd.cxx b/unix/vncpasswd/vncpasswd.cxx
index 9f794e12..9833ec7b 100644
--- a/unix/vncpasswd/vncpasswd.cxx
+++ b/unix/vncpasswd/vncpasswd.cxx
@@ -209,12 +209,13 @@ int main(int argc, char** argv)
if (fname[0] == '\0') {
const char *configDir = os::getvncconfigdir();
if (configDir == nullptr) {
- fprintf(stderr, "Can't obtain VNC config directory\n");
+ fprintf(stderr, "Could not determine VNC config directory path\n");
exit(1);
}
if (os::mkdir_p(configDir, 0777) == -1) {
if (errno != EEXIST) {
- fprintf(stderr, "Could not create VNC config directory: %s\n", strerror(errno));
+ fprintf(stderr, "Could not create VNC config directory \"%s\": %s\n",
+ configDir, strerror(errno));
exit(1);
}
}