aboutsummaryrefslogtreecommitdiff
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)
downloadluafilesystem-732f9e93091b7c7889d739696aed15ac1a57fde5.tar.gz
luafilesystem-732f9e93091b7c7889d739696aed15ac1a57fde5.tar.bz2
luafilesystem-732f9e93091b7c7889d739696aed15ac1a57fde5.zip
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*)) {
825 } 825 }
826 } 826 }
827 /* member not found */ 827 /* member not found */
828 return luaL_error(L, "invalid attribute name"); 828 return luaL_error(L, "invalid attribute name '%s'", member);
829 } 829 }
830 /* creates a table if none is given */ 830 /* creates a table if none is given */
831 if (!lua_istable (L, 2)) { 831 if (!lua_istable (L, 2)) {