diff options
-rw-r--r-- | src/lfs.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -811,8 +811,8 @@ static int _file_info_ (lua_State *L, int (*st)(const char*, STAT_STRUCT*)) { | |||
811 | int i; | 811 | int i; |
812 | 812 | ||
813 | if (st(file, &info)) { | 813 | if (st(file, &info)) { |
814 | lua_pushnil (L); | 814 | lua_pushnil(L); |
815 | lua_pushfstring (L, "cannot obtain information from file `%s'", file); | 815 | lua_pushfstring(L, "cannot obtain information from file '%s': %s", file, strerror(errno)); |
816 | return 2; | 816 | return 2; |
817 | } | 817 | } |
818 | if (lua_isstring (L, 2)) { | 818 | if (lua_isstring (L, 2)) { |