diff options
author | Ferdinand Bachmann <theferdi265@gmail.com> | 2018-10-25 22:17:03 +0200 |
---|---|---|
committer | Ferdinand Bachmann <theferdi265@gmail.com> | 2018-10-25 22:17:03 +0200 |
commit | 6409a109f648832301b9042dd3c1a69fa077339b (patch) | |
tree | a2fc84f05dc409154006da552cf6747ce5f972c2 /sway/ipc-server.c | |
parent | Merge pull request #2982 from Toromtomtom/master (diff) | |
download | sway-6409a109f648832301b9042dd3c1a69fa077339b.tar.gz sway-6409a109f648832301b9042dd3c1a69fa077339b.tar.zst sway-6409a109f648832301b9042dd3c1a69fa077339b.zip |
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.c | 4 |
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) { | |||
655 | struct json_object *request = json_tokener_parse(buf); | 655 | struct json_object *request = json_tokener_parse(buf); |
656 | if (request == NULL) { | 656 | if (request == NULL) { |
657 | client_valid = ipc_send_reply(client, "{\"success\": false}", 18); | 657 | client_valid = ipc_send_reply(client, "{\"success\": false}", 18); |
658 | wlr_log_errno(WLR_INFO, "Failed to read request"); | 658 | wlr_log(WLR_INFO, "Failed to parse subscribe request"); |
659 | goto exit_cleanup; | 659 | goto exit_cleanup; |
660 | } | 660 | } |
661 | 661 | ||
@@ -684,7 +684,7 @@ void ipc_client_handle_command(struct ipc_client *client) { | |||
684 | client_valid = | 684 | client_valid = |
685 | ipc_send_reply(client, "{\"success\": false}", 18); | 685 | ipc_send_reply(client, "{\"success\": false}", 18); |
686 | json_object_put(request); | 686 | json_object_put(request); |
687 | wlr_log_errno(WLR_INFO, "Failed to parse request"); | 687 | wlr_log(WLR_INFO, "Unsupported event type in subscribe request"); |
688 | goto exit_cleanup; | 688 | goto exit_cleanup; |
689 | } | 689 | } |
690 | } | 690 | } |