From 34152166109819e03ce400c71586076386ba70ca Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sun, 9 Oct 2005 22:01:08 +0000 Subject: [PATCH] more verbose exception handling --- src/eressea/lua/spell.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/eressea/lua/spell.cpp b/src/eressea/lua/spell.cpp index dbe36216a..43f5a0ba3 100644 --- a/src/eressea/lua/spell.cpp +++ b/src/eressea/lua/spell.cpp @@ -42,8 +42,8 @@ call_spell(castorder *co) catch (luabind::error& e) { lua_State* L = e.state(); const char* error = lua_tostring(L, -1); - - log_error((error)); + log_error(("An exception occured while %s tried to call '%s': %s.\n", + unitname(mage), fname, error)); lua_pop(L, 1); std::terminate(); }