From: Axel Wagner Date: Fri, 14 Jan 2011 16:33:40 +0000 (+0100) Subject: Display socket-path in connection-error-message X-Git-Tag: 4.0.1~7^2~24 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2064df9e5d24750ba39e7855c78368ea42c9674d;p=i3%2Fi3 Display socket-path in connection-error-message --- diff --git a/i3bar/src/ipc.c b/i3bar/src/ipc.c index ce9f52cd..206b1b72 100644 --- a/i3bar/src/ipc.c +++ b/i3bar/src/ipc.c @@ -286,7 +286,7 @@ int init_connection(const char *socket_path) { addr.sun_family = AF_LOCAL; strcpy(addr.sun_path, sock_path); 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(); return 0; }