diff options
-rw-r--r-- | src/lfs.c | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -360,11 +360,7 @@ static int lfs_g_setmode (lua_State *L, FILE *f, int arg) { | |||
360 | lua_pushnil(L); | 360 | lua_pushnil(L); |
361 | return 2; | 361 | return 2; |
362 | } else { | 362 | } else { |
363 | int en = errno; | 363 | return pusherror(L, NULL); |
364 | lua_pushnil(L); | ||
365 | lua_pushfstring(L, "%s", strerror(en)); | ||
366 | lua_pushinteger(L, en); | ||
367 | return 3; | ||
368 | } | 364 | } |
369 | } | 365 | } |
370 | 366 | ||