summaryrefslogtreecommitdiffstats
path: root/ctl-binding
diff options
context:
space:
mode:
authorFulup Ar Foll <fulup@iot.bzh>2017-08-25 01:11:18 +0200
committerRomain Forlot <romain.forlot@iot.bzh>2018-12-13 15:02:04 +0100
commit9272e2857f9d77a2a3052592f25ecdd524497bd5 (patch)
tree1cf234999099ee55404c63133a3beede8c287952 /ctl-binding
parentb8eab292bccaf7f421826f4521ae3d3fee98bc07 (diff)
Fulup Error Message at Lua level
Diffstat (limited to 'ctl-binding')
-rw-r--r--ctl-binding/ctl-lua.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ctl-binding/ctl-lua.c b/ctl-binding/ctl-lua.c
index 8d5a87e..d737026 100644
--- a/ctl-binding/ctl-lua.c
+++ b/ctl-binding/ctl-lua.c
@@ -460,7 +460,7 @@ STATIC int LuaAfbService(lua_State* luaState) {
// note: argument start at 2 because of AFB: table
if (count <5 || !lua_isstring(luaState, 2) || !lua_isstring(luaState, 3) || !lua_istable(luaState, 4) || !lua_isstring(luaState, 5)) {
- lua_pushliteral (luaState, "LuaAfbServiceCall-Syntax is AFB:service_call (api, verb, query, callback, handle ....");
+ lua_pushliteral (luaState, "ERROR: syntax AFB:service(api, verb, {[Lua Table]})");
goto OnErrorExit;
}
@@ -489,7 +489,7 @@ STATIC int LuaAfbServiceSync(lua_State* luaState) {
// note: argument start at 2 because of AFB: table
if (count <3 || !lua_isstring(luaState, 2) || !lua_isstring(luaState, 3) || !lua_istable(luaState, 4)) {
- lua_pushliteral (luaState, "LuaAfbServiceSync-Syntax is error,data=AFB:service_call (api, verb, query)");
+ lua_pushliteral (luaState, "ERROR: syntax AFB:servsync(api, verb, {[Lua Table]})");
goto OnErrorExit;
}