aboutsummaryrefslogtreecommitdiffstats
path: root/sway/ipc-server.c
diff options
context:
space:
mode:
authorLibravatar Jason Nader <jason.nader@protonmail.com>2020-03-01 03:49:54 +0900
committerLibravatar Drew DeVault <sir@cmpwn.com>2020-02-29 19:59:42 +0100
commit476773dd32e2f423f58dea39fac8b2dc0ba085b9 (patch)
treeb6cbdc8def15ab603d0ccf93abffb4a24071fb4e /sway/ipc-server.c
parentsway.5: correct description of workspace [number] (diff)
downloadsway-476773dd32e2f423f58dea39fac8b2dc0ba085b9.tar.gz
sway-476773dd32e2f423f58dea39fac8b2dc0ba085b9.tar.zst
sway-476773dd32e2f423f58dea39fac8b2dc0ba085b9.zip
ipc-server: improve error message
Diffstat (limited to 'sway/ipc-server.c')
-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
923 } 923 }
924 924
925 if (client->write_buffer_size > 4e6) { // 4 MB 925 if (client->write_buffer_size > 4e6) { // 4 MB
926 sway_log(SWAY_ERROR, "Client write buffer too big, disconnecting client"); 926 sway_log(SWAY_ERROR, "Client write buffer too big (%zu), disconnecting client",
927 client->write_buffer_size);
927 ipc_client_disconnect(client); 928 ipc_client_disconnect(client);
928 return false; 929 return false;
929 } 930 }