Make error message slightly better.

This commit is contained in:
Tim Felgentreff 2016-09-18 16:15:22 +02:00 committed by GitHub
parent 5eff97fd46
commit 0a3f137fbf

View file

@ -67,7 +67,7 @@
static SpellActionType *CclSpellAction(lua_State *l)
{
if (!lua_istable(l, -1)) {
LuaError(l, "incorrect argument");
LuaError(l, "expected a table of tables as spell action");
}
const int args = lua_rawlen(l, -1);