mirror of
https://github.com/lunarmodules/luafilesystem.git
synced 2026-07-22 02:53:06 +00:00
Add attribute name to error on invalid attribute in lfs.attributes
This commit is contained in:
@@ -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)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user