From: Michael Stapelberg Date: Wed, 23 Jan 2013 07:11:27 +0000 (+0100) Subject: i3-msg: include socket path in error message X-Git-Tag: 4.5~55 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e8fa3eeebda44de0fe6400b9d53961f4bcc149a8;p=i3%2Fi3 i3-msg: include socket path in error message --- diff --git a/i3-msg/main.c b/i3-msg/main.c index 607c5269..131146d8 100644 --- a/i3-msg/main.c +++ b/i3-msg/main.c @@ -126,7 +126,7 @@ int main(int argc, char *argv[]) { addr.sun_family = AF_LOCAL; strncpy(addr.sun_path, socket_path, sizeof(addr.sun_path) - 1); if (connect(sockfd, (const struct sockaddr*)&addr, sizeof(struct sockaddr_un)) < 0) - err(EXIT_FAILURE, "Could not connect to i3"); + err(EXIT_FAILURE, "Could not connect to i3 on socket \"%s\"", socket_path); if (ipc_send_message(sockfd, strlen(payload), message_type, (uint8_t*)payload) == -1) err(EXIT_FAILURE, "IPC: write()");