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

@@ -192,11 +192,14 @@ LUALIB_API void luaL_where (lua_State *L, int level) {
lua_pushliteral(L, ""); /* else, no information available... */
}
LUALIB_API void luaL_no_where (lua_State *L, int level) {
lua_pushliteral(L, ""); /* else, no information available... */
}
LUALIB_API int luaL_error (lua_State *L, const char *fmt, ...) {
va_list argp;
va_start(argp, fmt);
luaL_where(L, 1);
luaL_no_where(L, 1);
lua_pushvfstring(L, fmt, argp);
va_end(argp);
lua_concat(L, 2);