mirror of
https://github.com/lua/lua
synced 2026-09-29 04:35:58 +03:00
error message ends with `\n' (is already formatted)
This commit is contained in:
parent
9d6556fd87
commit
69906cb56f
1 changed files with 2 additions and 2 deletions
4
llex.c
4
llex.c
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
** $Id: llex.c,v 1.104 2002/06/03 20:12:21 roberto Exp roberto $
|
||||
** $Id: llex.c,v 1.105 2002/06/18 15:19:27 roberto Exp roberto $
|
||||
** Lexical Analyzer
|
||||
** See Copyright Notice in lua.h
|
||||
*/
|
||||
|
|
@ -60,7 +60,7 @@ static void luaX_error (LexState *ls, const char *s, const char *token) {
|
|||
lua_State *L = ls->L;
|
||||
char buff[MAXSRC];
|
||||
luaO_chunkid(buff, getstr(ls->source), MAXSRC);
|
||||
luaO_pushfstring(L, "%s:%d: %s near `%s'", buff, ls->linenumber, s, token);
|
||||
luaO_pushfstring(L, "%s:%d: %s near `%s'\n", buff, ls->linenumber, s, token);
|
||||
luaD_throw(L, LUA_ERRSYNTAX);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue