From 732f9e93091b7c7889d739696aed15ac1a57fde5 Mon Sep 17 00:00:00 2001 From: Peter Melnichenko Date: Wed, 4 May 2016 15:33:43 +0300 Subject: Add attribute name to error on invalid attribute in lfs.attributes --- src/lfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) { -- cgit v1.2.3-55-g6feb