diff options
-rw-r--r-- | ctl-lib/ctl-config.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ctl-lib/ctl-config.c b/ctl-lib/ctl-config.c index cd89bc0..2970955 100644 --- a/ctl-lib/ctl-config.c +++ b/ctl-lib/ctl-config.c @@ -163,7 +163,7 @@ int CtlConfigExec(afb_api_t apiHandle, CtlConfigT *ctlConfig) { error = ctlConfig->sections[idx].loadCB(apiHandle, &ctlConfig->sections[idx], NULL); if (error < 0) { AFB_API_ERROR(apiHandle, "Error %i caught during call to '%s' section callback", error, ctlConfig->sections[idx].key); - return -idx; + return -(idx + 1); } else if (error > 0) { AFB_API_WARNING(apiHandle, "Warning %i raised during call to '%s' section callback", error, ctlConfig->sections[idx].key); |