Display socket-path in connection-error-message

This commit is contained in:
Axel Wagner 2011-01-14 17:33:40 +01:00
parent caca38b68e
commit 4762152e1c
1 changed files with 1 additions and 1 deletions

View File

@ -286,7 +286,7 @@ int init_connection(const char *socket_path) {
addr.sun_family = AF_LOCAL; addr.sun_family = AF_LOCAL;
strcpy(addr.sun_path, sock_path); strcpy(addr.sun_path, sock_path);
if (connect(sockfd, (const struct sockaddr*) &addr, sizeof(struct sockaddr_un)) < 0) { if (connect(sockfd, (const struct sockaddr*) &addr, sizeof(struct sockaddr_un)) < 0) {
ELOG("Could not connect to i3: %s\n", strerror(errno)); ELOG("Could not connect to i3! %s: %s\n", sock_path, strerror(errno));
reconnect(); reconnect();
return 0; return 0;
} }