From 5d57b53eb0334d4678cd26441e09896972016586 Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Mon, 17 Jun 2013 22:32:30 +0000 Subject: [PATCH] lua: print the actual panic message before dumping a callstack. --- src/world.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/world.cpp b/src/world.cpp index f9bf4c32..c56da3dd 100644 --- a/src/world.cpp +++ b/src/world.cpp @@ -33,6 +33,8 @@ class WorldData static int LuaPanic(lua_State* L) { + char const *message = lua_tostring(L, -1); + Log::Error("%s\n", message); DebugAbort(); return 0; }