forked from github/server
more verbose exception handling
This commit is contained in:
parent
af447d3034
commit
3415216610
|
@ -42,8 +42,8 @@ call_spell(castorder *co)
|
||||||
catch (luabind::error& e) {
|
catch (luabind::error& e) {
|
||||||
lua_State* L = e.state();
|
lua_State* L = e.state();
|
||||||
const char* error = lua_tostring(L, -1);
|
const char* error = lua_tostring(L, -1);
|
||||||
|
log_error(("An exception occured while %s tried to call '%s': %s.\n",
|
||||||
log_error((error));
|
unitname(mage), fname, error));
|
||||||
lua_pop(L, 1);
|
lua_pop(L, 1);
|
||||||
std::terminate();
|
std::terminate();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue