diff options
Diffstat (limited to '')
-rw-r--r-- | ldo.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ldo.c,v 1.17 1997/12/18 18:32:39 roberto Exp roberto $ | 2 | ** $Id: ldo.c,v 1.18 1997/12/22 20:57:18 roberto Exp roberto $ |
3 | ** Stack and Call structure of Lua | 3 | ** Stack and Call structure of Lua |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -38,9 +38,7 @@ | |||
38 | 38 | ||
39 | static void stderrorim (void) | 39 | static void stderrorim (void) |
40 | { | 40 | { |
41 | lua_Object s = lua_getparam(1); | 41 | fprintf(stderr, "lua error: %s\n", lua_getstring(lua_getparam(1))); |
42 | if (lua_isstring(s)) | ||
43 | fprintf(stderr, "lua error: %s\n", lua_getstring(s)); | ||
44 | } | 42 | } |
45 | 43 | ||
46 | 44 | ||