summaryrefslogtreecommitdiff
path: root/src/events.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/events.c')
-rw-r--r--src/events.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/events.c b/src/events.c
index 257f141..f09f9d1 100644
--- a/src/events.c
+++ b/src/events.c
@@ -476,8 +476,7 @@ execute_remote_command (Window w)
if (status != Success || req == NULL)
{
- PRINT_DEBUG (("Couldn't get RP_COMMAND Property\n"));
- return NULL;
+ return cmdret_new (RET_FAILURE, "Couldn't get RP_COMMAND Property");
}
/* XGetWindowProperty always allocates one extra byte even if
@@ -491,8 +490,7 @@ execute_remote_command (Window w)
if (status != Success || req == NULL)
{
- PRINT_DEBUG (("Couldn't get RP_COMMAND Property\n"));
- return NULL;
+ return cmdret_new (RET_FAILURE, "Couldn't get RP_COMMAND Property");
}
PRINT_DEBUG (("command: %s\n", req));