aboutsummaryrefslogtreecommitdiff
path: root/sway/ipc-server.c
diff options
context:
space:
mode:
authorFerdinand Bachmann <theferdi265@gmail.com>2018-10-25 22:17:03 +0200
committerFerdinand Bachmann <theferdi265@gmail.com>2018-10-25 22:17:03 +0200
commit6409a109f648832301b9042dd3c1a69fa077339b (patch)
treea2fc84f05dc409154006da552cf6747ce5f972c2 /sway/ipc-server.c
parent73b7c5cc05105018e86e4289ac607434783b7647 (diff)
sway-ipc: don't log errno if unneeded and add more descriptive errors
Diffstat (limited to 'sway/ipc-server.c')
-rw-r--r--sway/ipc-server.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/ipc-server.c b/sway/ipc-server.c
index 619d2aef..21f431be 100644
--- a/sway/ipc-server.c
+++ b/sway/ipc-server.c
@@ -655,7 +655,7 @@ void ipc_client_handle_command(struct ipc_client *client) {
struct json_object *request = json_tokener_parse(buf);
if (request == NULL) {
client_valid = ipc_send_reply(client, "{\"success\": false}", 18);
- wlr_log_errno(WLR_INFO, "Failed to read request");
+ wlr_log(WLR_INFO, "Failed to parse subscribe request");
goto exit_cleanup;
}
@@ -684,7 +684,7 @@ void ipc_client_handle_command(struct ipc_client *client) {
client_valid =
ipc_send_reply(client, "{\"success\": false}", 18);
json_object_put(request);
- wlr_log_errno(WLR_INFO, "Failed to parse request");
+ wlr_log(WLR_INFO, "Unsupported event type in subscribe request");
goto exit_cleanup;
}
}