diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/lfs.c | 3 |
1 files changed, 2 insertions, 1 deletions
| @@ -800,7 +800,8 @@ static int _file_info_ (lua_State *L, int (*st)(const char*, STAT_STRUCT*)) { | |||
| 800 | if (st(file, &info)) { | 800 | if (st(file, &info)) { |
| 801 | lua_pushnil(L); | 801 | lua_pushnil(L); |
| 802 | lua_pushfstring(L, "cannot obtain information from file '%s': %s", file, strerror(errno)); | 802 | lua_pushfstring(L, "cannot obtain information from file '%s': %s", file, strerror(errno)); |
| 803 | return 2; | 803 | lua_pushinteger(L, errno); |
| 804 | return 3; | ||
| 804 | } | 805 | } |
| 805 | if (lua_isstring (L, 2)) { | 806 | if (lua_isstring (L, 2)) { |
| 806 | const char *member = lua_tostring (L, 2); | 807 | const char *member = lua_tostring (L, 2); |
