Skip to content

Commit

Permalink
ipc: make client connection failure more descriptive (#604)
Browse files Browse the repository at this point in the history
  • Loading branch information
rvaiya committed Nov 11, 2023
1 parent 201a077 commit d157f8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ipc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit d157f8a

Please sign in to comment.