summaryrefslogtreecommitdiff
path: root/src/wayland-client.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/wayland-client.c')
-rw-r--r--src/wayland-client.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/wayland-client.c b/src/wayland-client.c
index 9656cb5..498a429 100644
--- a/src/wayland-client.c
+++ b/src/wayland-client.c
@@ -203,7 +203,10 @@ wl_proxy_marshal(struct wl_proxy *proxy, uint32_t opcode, ...)
abort();
}
- wl_closure_send(closure, proxy->display->connection);
+ if (wl_closure_send(closure, proxy->display->connection)) {
+ fprintf(stderr, "Error sending request: %m\n");
+ abort();
+ }
if (wl_debug)
wl_closure_print(closure, &proxy->object, true);