ipc-server: improve error message

This commit is contained in:
Jason Nader 2020-03-01 03:49:54 +09:00 committed by Drew DeVault
parent 7fea36750e
commit 476773dd32
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}