aboutgitcodelistschat:MatrixIRC
diff options
context:
space:
mode:
authorAlice Frosi <afrosi@redhat.com>2023-02-21 13:21:33 +0100
committerAlice Frosi <afrosi@redhat.com>2023-02-21 13:28:09 +0100
commitbe0b13f553126297d7e15c2b969e5d1debe34894 (patch)
tree56645b5e780f736d8c3faa105c7bb93b567dac16
parent6ad5dd9567d541ad9403354629f068fa37de32b9 (diff)
downloadseitan-be0b13f553126297d7e15c2b969e5d1debe34894.tar
seitan-be0b13f553126297d7e15c2b969e5d1debe34894.tar.gz
seitan-be0b13f553126297d7e15c2b969e5d1debe34894.tar.bz2
seitan-be0b13f553126297d7e15c2b969e5d1debe34894.tar.lz
seitan-be0b13f553126297d7e15c2b969e5d1debe34894.tar.xz
seitan-be0b13f553126297d7e15c2b969e5d1debe34894.tar.zst
seitan-be0b13f553126297d7e15c2b969e5d1debe34894.zip
action: return error for act_call
-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