aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lfs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lfs.c b/src/lfs.c
index 3c70d8e..2b85d30 100644
--- a/src/lfs.c
+++ b/src/lfs.c
@@ -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)) {