Add attribute name to error on invalid attribute in lfs.attributes

This commit is contained in:
Peter Melnichenko
2016-05-04 15:33:43 +03:00
parent 03e01ff953
commit 732f9e9309

View File

@@ -825,7 +825,7 @@ static int _file_info_ (lua_State *L, int (*st)(const char*, STAT_STRUCT*)) {
} }
} }
/* member not found */ /* 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 */ /* creates a table if none is given */
if (!lua_istable (L, 2)) { if (!lua_istable (L, 2)) {