more verbose exception handling

This commit is contained in:
Enno Rehling 2005-10-09 22:01:08 +00:00
parent af447d3034
commit 3415216610
1 changed files with 2 additions and 2 deletions

View File

@ -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();
}