浏览代码

lua: print the actual panic message before dumping a callstack.

legacy
Sam Hocevar sam 12 年前
父节点
当前提交
5d57b53eb0
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. +2
    -0
      src/world.cpp

+ 2
- 0
src/world.cpp 查看文件

@@ -33,6 +33,8 @@ class WorldData


static int LuaPanic(lua_State* L) static int LuaPanic(lua_State* L)
{ {
char const *message = lua_tostring(L, -1);
Log::Error("%s\n", message);
DebugAbort(); DebugAbort();
return 0; return 0;
} }


正在加载...
取消
保存