From c03c527fd207b4ad8f5a8e0f4f2c176bd227c979 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Mon, 15 Feb 2021 13:31:45 -0300 Subject: Bug: 'string.concat' error message uses wrong format --- ltablib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ltablib.c') diff --git a/ltablib.c b/ltablib.c index d344a47e..c7f0e4dc 100644 --- a/ltablib.c +++ b/ltablib.c @@ -146,7 +146,7 @@ static int tmove (lua_State *L) { static void addfield (lua_State *L, luaL_Buffer *b, lua_Integer i) { lua_geti(L, 1, i); if (!lua_isstring(L, -1)) - luaL_error(L, "invalid value (%s) at index %d in table for 'concat'", + luaL_error(L, "invalid value (%s) at index %I in table for 'concat'", luaL_typename(L, -1), i); luaL_addvalue(b); } -- cgit v1.2.3-55-g6feb