aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2018-05-16 11:43:48 +0200
committerRomain Forlot <romain.forlot@iot.bzh>2018-05-16 11:45:15 +0200
commit5dac4e9dc283879b359d94a0ec5f69572e59650d (patch)
tree30612168b988e5b08b0df92131133acd4547e4a8
parentd57677573b830950f7eaf35327d6138e1248ed4c (diff)
Fix wrong error message.
Signature was wrong since last modification about controller and lua integration that now transport source informations. Change-Id: I8f98415b55978e6b7221415ad6169e8d2bc1c959 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
-rw-r--r--ctl-lib/ctl-lua.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ctl-lib/ctl-lua.c b/ctl-lib/ctl-lua.c
index f932edf..ae991c6 100644
--- a/ctl-lib/ctl-lua.c
+++ b/ctl-lib/ctl-lua.c
@@ -494,7 +494,7 @@ static int LuaAfbServiceSync(lua_State* luaState) {
// note: argument start at 2 because of AFB: table
if (count != 5 || !lua_isstring(luaState, LUA_FIST_ARG + 1) || !lua_isstring(luaState, LUA_FIST_ARG + 2) || !lua_istable(luaState, LUA_FIST_ARG + 3)) {
- lua_pushliteral(luaState, "ERROR: syntax AFB:servsync(api, verb, {[Lua Table]})");
+ lua_pushliteral(luaState, "ERROR: syntax AFB:servsync(source, api, verb, {[Lua Table]})");
lua_error(luaState);
return 1;
}
@@ -1253,7 +1253,7 @@ static const luaL_Reg afbFunction[] = {
int LuaConfigExec(AFB_ApiT apiHandle) {
int err;
-
+
// Load LUA utils functions.
err = LuaDoString(lua_utils, NULL);
if (err) {