Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/keplerproject/luafilesystem.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Melnichenko <mpeterval@gmail.com>2016-05-04 15:33:43 +0300
committerPeter Melnichenko <mpeterval@gmail.com>2016-05-05 12:10:04 +0300
commit732f9e93091b7c7889d739696aed15ac1a57fde5 (patch)
treedcbbb16fb44b62fc89931b47555a3afb90bab2a7
parent03e01ff9538a54be9f6b9ad85b5c95ddcc404c4c (diff)
Add attribute name to error on invalid attribute in lfs.attributes
-rw-r--r--src/lfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lfs.c b/src/lfs.c
index a35413d..3c70d8e 100644
--- a/src/lfs.c
+++ b/src/lfs.c
@@ -825,7 +825,7 @@ static int _file_info_ (lua_State *L, int (*st)(const char*, STAT_STRUCT*)) {
}
}
/* member not found */
- return luaL_error(L, "invalid attribute name");
+ return luaL_error(L, "invalid attribute name '%s'", member);
}
/* creates a table if none is given */
if (!lua_istable (L, 2)) {