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

@@ -586,6 +586,9 @@ static void addinfo (lua_State *L, const char *msg) {
}
}
static void no_addinfo (lua_State *L, const char *msg) {
// do nothing.
}
l_noret luaG_errormsg (lua_State *L) {
if (L->errfunc != 0) { /* is there an error handling function? */
@@ -603,7 +606,7 @@ l_noret luaG_errormsg (lua_State *L) {
l_noret luaG_runerror (lua_State *L, const char *fmt, ...) {
va_list argp;
va_start(argp, fmt);
addinfo(L, luaO_pushvfstring(L, fmt, argp));
no_addinfo(L, luaO_pushvfstring(L, fmt, argp));
va_end(argp);
luaG_errormsg(L);
}