ipc: make client connection failure more descriptive (#604)

master
Raheman Vaiya 2 years ago
parent 201a077b2c
commit d157f8ae2a
  1. 2
      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);
}

Loading…
Cancel
Save