Fixed pcall

This commit is contained in:
Alexey Gulev
2019-09-20 20:06:35 +02:00
parent b68550e6ef
commit af80e05796
3 changed files with 12 additions and 15 deletions

View File

@@ -123,7 +123,7 @@ IAP g_IAP;
int ret = lua_pcall(L, 3, 0, 0);
if (ret != 0) {
dmLogError("Error running iap callback");
dmLogError("Error running callback: %s", lua_tostring(L, -1));
lua_pop(L, 1);
}
@@ -166,7 +166,7 @@ IAP g_IAP;
int ret = lua_pcall(L, 3, 0, 0);
if (ret != 0) {
dmLogError("Error running iap callback");
dmLogError("Error running callback: %s", lua_tostring(L, -1));
lua_pop(L, 1);
}
@@ -262,7 +262,7 @@ void RunTransactionCallback(lua_State* L, int cb, int self, SKPaymentTransaction
int ret = lua_pcall(L, 3, 0, 0);
if (ret != 0) {
dmLogError("Error running iap callback");
dmLogError("Error running callback: %s", lua_tostring(L, -1));
lua_pop(L, 1);
}