eris: remove file+line from most error messages

This commit is contained in:
2021-03-18 12:36:55 -04:00
parent fa23ad87c7
commit 05052f846e
5 changed files with 11 additions and 4 deletions

View File

@@ -90,7 +90,7 @@ static int luaB_error (lua_State *L) {
int level = luaL_optint(L, 2, 1);
lua_settop(L, 1);
if (lua_isstring(L, 1) && level > 0) { /* add extra information? */
luaL_where(L, level);
luaL_no_where(L, level);
lua_pushvalue(L, 1);
lua_concat(L, 2);
}