Skip to content

Commit

Permalink
Fixed pcall
Browse files Browse the repository at this point in the history
  • Loading branch information
AGulev committed Sep 20, 2019
1 parent e99ee3d commit ba8e7c8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion extension-iac/src/iac_android.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down
2 changes: 1 addition & 1 deletion extension-iac/src/iac_ios.mm
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit ba8e7c8

Please sign in to comment.