summaryrefslogtreecommitdiffstats
path: root/ctl-binding/ctl-lua.c
diff options
context:
space:
mode:
authorFulup Ar Foll <fulup@iot.bzh>2017-08-25 01:11:18 +0200
committerFulup Ar Foll <fulup@iot.bzh>2017-08-25 01:11:18 +0200
commite5c437fd9d5ac7e4c83e47f8bc9ea562120d7881 (patch)
treea4d598fcf814c937cd43b78e197e1ec9d9636edb /ctl-binding/ctl-lua.c
parent4ddac4ec016d2656f8819ca860b9a6ee9c13caa2 (diff)
Fulup Error Message at Lua level
Diffstat (limited to 'ctl-binding/ctl-lua.c')
-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;
}