From d157f8ae2a0af3f237337658ef065abdb9433d60 Mon Sep 17 00:00:00 2001 From: Raheman Vaiya Date: Fri, 10 Nov 2023 20:58:01 -0500 Subject: [PATCH] ipc: make client connection failure more descriptive (#604) --- src/ipc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ipc.c b/src/ipc.c index 9b8ec14..92f679f 100644 --- a/src/ipc.c +++ b/src/ipc.c @@ -37,7 +37,7 @@ int ipc_connect() strncpy(addr.sun_path, SOCKET_PATH, sizeof(addr.sun_path)-1); if (connect(sd, (struct sockaddr *) &addr, sizeof addr) < 0) { - perror("bind"); + fprintf(stderr, "ERROR: Failed to connect to \"" SOCKET_PATH "\", make sure keyd is running and you have permission to access the socket."); exit(-1); }