diff options
author | Romain Forlot <romain.forlot@iot.bzh> | 2018-07-26 18:19:19 +0200 |
---|---|---|
committer | Jan-Simon Moeller <jsmoeller@linuxfoundation.org> | 2018-07-27 12:39:42 +0000 |
commit | 61cbc9a5e0729fe4e0274186b0137f5d1f1b75d6 (patch) | |
tree | 7dd5d95f4004f8984dfc856405a63d77715cfea7 /ctl-lib/ctl-plugin.c | |
parent | 535df7f1adb71c90612079e6b35754ed20b099df (diff) |
More precise log message when loading a Lua file
This will indicates what is the error at the LUA file loading
Change-Id: I258bf43a2200577998e05cf7b2253bdd510a468e
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'ctl-lib/ctl-plugin.c')
-rw-r--r-- | ctl-lib/ctl-plugin.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/ctl-lib/ctl-plugin.c b/ctl-lib/ctl-plugin.c index 182b34f..0c0bacc 100644 --- a/ctl-lib/ctl-plugin.c +++ b/ctl-lib/ctl-plugin.c @@ -226,10 +226,8 @@ static int LoadFoundPlugins(AFB_ApiT apiHandle, json_object *scanResult, json_ob else if(ext && !strcasecmp(ext, CTL_SCRIPT_EXT)) { ctlPlugin->api = apiHandle; ctlPlugin->context = handle; - if(LuaLoadScript(pluginpath)) { - AFB_ApiError(apiHandle, "There was an error loading the lua file %s", pluginpath); + if(LuaLoadScript(apiHandle, pluginpath)) return -1; - } } } |