diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-09-05 16:45:42 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-09-05 16:45:42 -0300 |
commit | 1bdde38bd24b137a240aede92363837e3d1a79b9 (patch) | |
tree | feb4d9bc8c4dc3c3bf815bd1d21b837c92debf59 /lbaselib.c | |
parent | b2bc3b44b6bdf5efd783a50c28e108ac3bcba9fd (diff) | |
download | lua-1bdde38bd24b137a240aede92363837e3d1a79b9.tar.gz lua-1bdde38bd24b137a240aede92363837e3d1a79b9.tar.bz2 lua-1bdde38bd24b137a240aede92363837e3d1a79b9.zip |
no more newlines at the end of error messages
Diffstat (limited to 'lbaselib.c')
-rw-r--r-- | lbaselib.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lbaselib.c,v 1.96 2002/08/06 18:54:18 roberto Exp roberto $ | 2 | ** $Id: lbaselib.c,v 1.97 2002/08/08 20:08:41 roberto Exp roberto $ |
3 | ** Basic library | 3 | ** Basic library |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -82,8 +82,7 @@ static int luaB_error (lua_State *L) { | |||
82 | else { /* add extra information */ | 82 | else { /* add extra information */ |
83 | luaL_where(L, level); | 83 | luaL_where(L, level); |
84 | lua_pushvalue(L, 1); | 84 | lua_pushvalue(L, 1); |
85 | lua_pushliteral(L, "\n"); | 85 | lua_concat(L, 2); |
86 | lua_concat(L, 3); | ||
87 | } | 86 | } |
88 | return lua_error(L); | 87 | return lua_error(L); |
89 | } | 88 | } |