diff options
| -rw-r--r-- | lua.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lua.c,v 1.76 2002/02/14 21:47:50 roberto Exp roberto $ | 2 | ** $Id: lua.c,v 1.77 2002/02/14 22:23:43 roberto Exp roberto $ |
| 3 | ** Lua stand-alone interpreter | 3 | ** Lua stand-alone interpreter |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -142,7 +142,7 @@ static int file_input (const char *name) { | |||
| 142 | int result = ldo(lua_dofile, name, 1); | 142 | int result = ldo(lua_dofile, name, 1); |
| 143 | if (result) { | 143 | if (result) { |
| 144 | if (result == LUA_ERRFILE) { | 144 | if (result == LUA_ERRFILE) { |
| 145 | fprintf(stderr, "%s%s\n", LUA_PROGNAME, luaL_errstr(result)); | 145 | fprintf(stderr, "%s%s ", LUA_PROGNAME, luaL_errstr(result)); |
| 146 | perror(name); | 146 | perror(name); |
| 147 | } | 147 | } |
| 148 | return EXIT_FAILURE; | 148 | return EXIT_FAILURE; |
