eris: remove file+line from most error messages
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user