aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2018-05-16 01:25:19 +0200
committerRomain Forlot <romain.forlot@iot.bzh>2018-06-29 19:38:08 +0200
commit227c9a3b471d1db7134dd6ba95ef6aa956765555 (patch)
tree88aab1f73724d31ddef8dd3f119ee35de5f429cf
parent52594bbf24f2ee016139e6ac5b748ad32c29a42e (diff)
Detect failure at OnLoad action calls
Be able to detect that an action has failed on an Onload section processing to avoid retrieving a wrong context after that. Change-Id: If694b11eb0a37154b539c421e43bebdb15d498c0 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
-rw-r--r--ctl-lib/ctl-onload.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ctl-lib/ctl-onload.c b/ctl-lib/ctl-onload.c
index b2b3234..9baa689 100644
--- a/ctl-lib/ctl-onload.c
+++ b/ctl-lib/ctl-onload.c
@@ -57,5 +57,5 @@ int OnloadConfig(AFB_ApiT apiHandle, CtlSectionT *section, json_object *actionsJ
}
}
- return 0;
+ return err;
}