diff options
author | Mattes D <github@xoft.cz> | 2016-08-23 13:20:43 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2016-08-23 13:20:43 +0200 |
commit | 5ca371bb9a65cc322eb8327d81709985daefe173 (patch) | |
tree | 41f9d786c52985118f444d86721649e1186e6b2d /src/Bindings/LuaState.cpp | |
parent | cUrlClient: Refactored callbacks to use UniquePtr. (diff) | |
download | cuberite-5ca371bb9a65cc322eb8327d81709985daefe173.tar cuberite-5ca371bb9a65cc322eb8327d81709985daefe173.tar.gz cuberite-5ca371bb9a65cc322eb8327d81709985daefe173.tar.bz2 cuberite-5ca371bb9a65cc322eb8327d81709985daefe173.tar.lz cuberite-5ca371bb9a65cc322eb8327d81709985daefe173.tar.xz cuberite-5ca371bb9a65cc322eb8327d81709985daefe173.tar.zst cuberite-5ca371bb9a65cc322eb8327d81709985daefe173.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Bindings/LuaState.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/Bindings/LuaState.cpp b/src/Bindings/LuaState.cpp index ec6bdb48a..81893c946 100644 --- a/src/Bindings/LuaState.cpp +++ b/src/Bindings/LuaState.cpp @@ -2139,6 +2139,17 @@ cLuaState * cLuaState::QueryCanonLuaState(void) +void cLuaState::LogApiCallParamFailure(const char * a_FnName, const char * a_ParamNames) +{ + LOGWARNING("%s: Cannot read params: %s, bailing out.", a_FnName, a_ParamNames); + LogStackTrace(); + LogStackValues("Values on the stack"); +} + + + + + int cLuaState::ReportFnCallErrors(lua_State * a_LuaState) { LOGWARNING("LUA: %s", lua_tostring(a_LuaState, -1)); |