From ba8e7c8c2e9df274ea6da8407a1cfd87954dd778 Mon Sep 17 00:00:00 2001 From: Alexey Gulev Date: Fri, 20 Sep 2019 20:08:58 +0200 Subject: [PATCH] Fixed pcall --- extension-iac/src/iac_android.cpp | 2 +- extension-iac/src/iac_ios.mm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/extension-iac/src/iac_android.cpp b/extension-iac/src/iac_android.cpp index c475cfe..0a7b6c0 100644 --- a/extension-iac/src/iac_android.cpp +++ b/extension-iac/src/iac_android.cpp @@ -143,7 +143,7 @@ static void OnInvocation(const char* payload, const char *origin) int ret = lua_pcall(L, 3, 0, 0); if (ret != 0) { - dmLogError("Error running iac callback"); + dmLogError("Error running iac callback: %s", lua_tostring(L, -1)); lua_pop(L, 1); } assert(top == lua_gettop(L)); diff --git a/extension-iac/src/iac_ios.mm b/extension-iac/src/iac_ios.mm index ab428a9..13e0d76 100644 --- a/extension-iac/src/iac_ios.mm +++ b/extension-iac/src/iac_ios.mm @@ -102,7 +102,7 @@ static void RunIACListener(NSDictionary *userdata, uint32_t type) int ret = lua_pcall(L, 3, 0, 0); if (ret != 0) { - dmLogError("Error running iac callback"); + dmLogError("Error running iac callback: %s", lua_tostring(L, -1)); lua_pop(L, 1); } assert(top == lua_gettop(L));