diff options
author | Peter Melnichenko <mpeterval@gmail.com> | 2016-05-04 15:33:43 +0300 |
---|---|---|
committer | Peter Melnichenko <mpeterval@gmail.com> | 2016-05-05 12:10:04 +0300 |
commit | 732f9e93091b7c7889d739696aed15ac1a57fde5 (patch) | |
tree | dcbbb16fb44b62fc89931b47555a3afb90bab2a7 | |
parent | 03e01ff9538a54be9f6b9ad85b5c95ddcc404c4c (diff) | |
download | luafilesystem-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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)) { |