Changeset 6719 for code/branches/gamestates2
- Timestamp:
- Apr 13, 2010, 3:56:17 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/gamestates2/src/libraries/core/LuaState.cc
r6670 r6719 212 212 { 213 213 case LUA_ERRRUN: // Runtime error 214 // Do nothing (we already display the error in the 215 // 'errorHandler' Lua function in LuaStateInit.lua) 214 if (errorHandler) 215 { 216 // Do nothing (we already display the error in the 217 // 'errorHandler' Lua function in LuaStateInit.lua) 218 } 219 else 220 { 221 std::string errorString = lua_tostring(this->luaState_, -1); 222 if (errorString.find("Error propagation") == std::string::npos) 223 COUT(1) << "Lua runtime error: " << errorString << std::endl; 224 } 216 225 break; 217 226 case LUA_ERRERR: // Error in the error handler
Note: See TracChangeset
for help on using the changeset viewer.