From c0acc3e1cd36b203b6c1c37241fe634c5cfa3a54 Mon Sep 17 00:00:00 2001 From: Jim Blandy Date: Fri, 17 Jul 1992 21:04:37 +0000 Subject: [PATCH] *** empty log message *** --- lib-src/emacsclient.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib-src/emacsclient.c b/lib-src/emacsclient.c index bd2edf62993..5f1a41a502d 100644 --- a/lib-src/emacsclient.c +++ b/lib-src/emacsclient.c @@ -97,7 +97,11 @@ main (argc, argv) if (stat (server.sun_path, &statbfr) == -1) { - perror ("stat"); + if (errno == ENOENT) + fprintf (stderr, + "Can't find socket; have you started the server?\n"); + else + perror ("stat"); exit (1); } if (statbfr.st_uid != geteuid())