aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Nader <jason.nader@protonmail.com>2020-03-01 03:49:54 +0900
committerDrew DeVault <sir@cmpwn.com>2020-02-29 19:59:42 +0100
commit476773dd32e2f423f58dea39fac8b2dc0ba085b9 (patch)
treeb6cbdc8def15ab603d0ccf93abffb4a24071fb4e
parent7fea36750ea23906c41c18a2768acad2f51b2916 (diff)
ipc-server: improve error message
-rw-r--r--sway/ipc-server.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sway/ipc-server.c b/sway/ipc-server.c
index 54b33ca6..5e1cca89 100644
--- a/sway/ipc-server.c
+++ b/sway/ipc-server.c
@@ -923,7 +923,8 @@ bool ipc_send_reply(struct ipc_client *client, enum ipc_command_type payload_typ
}
if (client->write_buffer_size > 4e6) { // 4 MB
- sway_log(SWAY_ERROR, "Client write buffer too big, disconnecting client");
+ sway_log(SWAY_ERROR, "Client write buffer too big (%zu), disconnecting client",
+ client->write_buffer_size);
ipc_client_disconnect(client);
return false;
}