i3 - improved tiling WM


i3-msg: include socket path in error message

Patch status: merged

Patch by Michael Stapelberg

To apply this patch, use:
curl http://cr.i3wm.org/patch/1/raw.patch | git am

b/i3-msg/main.c

13
@@ -126,7 +126,7 @@ int main(int argc, char *argv[]) {
14
     addr.sun_family = AF_LOCAL;
15
     strncpy(addr.sun_path, socket_path, sizeof(addr.sun_path) - 1);
16
     if (connect(sockfd, (const struct sockaddr*)&addr, sizeof(struct sockaddr_un)) < 0)
17
-        err(EXIT_FAILURE, "Could not connect to i3");
18
+        err(EXIT_FAILURE, "Could not connect to i3 on socket \"%s\"", socket_path);
19
 
20
     if (ipc_send_message(sockfd, strlen(payload), message_type, (uint8_t*)payload) == -1)
21
         err(EXIT_FAILURE, "IPC: write()");