aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src
diff options
context:
space:
mode:
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/emacsclient.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/lib-src/emacsclient.c b/lib-src/emacsclient.c
index 65b5770c47e..6594910aa80 100644
--- a/lib-src/emacsclient.c
+++ b/lib-src/emacsclient.c
@@ -99,14 +99,16 @@ main (argc, argv)
99 { 99 {
100 if (errno == ENOENT) 100 if (errno == ENOENT)
101 fprintf (stderr, 101 fprintf (stderr,
102 "Can't find socket; have you started the server?\n"); 102 "%s: can't find socket; have you started the server?\n",
103 argv[0]);
103 else 104 else
104 perror ("stat"); 105 fprintf (stderr, "%s: can't stat %s: %s\n",
106 argv[0], server.sun_path, strerror (errno));
105 exit (1); 107 exit (1);
106 } 108 }
107 if (statbfr.st_uid != geteuid ()) 109 if (statbfr.st_uid != geteuid ())
108 { 110 {
109 fprintf (stderr, "Invalid socket owner\n"); 111 fprintf (stderr, "%s: Invalid socket owner\n", argv[0]);
110 exit (1); 112 exit (1);
111 } 113 }
112 } 114 }
@@ -302,7 +304,7 @@ main (argc, argv)
302#ifdef HPUX /* HPUX has a bug. */ 304#ifdef HPUX /* HPUX has a bug. */
303 if (strlen (msgp->mtext) >= 512) 305 if (strlen (msgp->mtext) >= 512)
304 { 306 {
305 fprintf (stderr, "emacsclient: args too long for msgsnd\n"); 307 fprintf (stderr, "%s: args too long for msgsnd\n", progname);
306 exit (1); 308 exit (1);
307 } 309 }
308#endif 310#endif