aboutgitcodelistschat:MatrixIRC
diff options
context:
space:
mode:
-rw-r--r--actions.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/actions.c b/actions.c
index ff8ff93..d4096b2 100644
--- a/actions.c
+++ b/actions.c
@@ -186,9 +186,9 @@ int do_actions(void *data, struct action actions[], unsigned int n_actions, int
return -1;
}
if (c.err != 0) {
- resp.error = c.err;
+ resp.error = -1;
if (send_target(&resp, notifyfd) == -1)
- return -1;
+ return c.err;
}
/*
* The result of the call needs to be save as