Bug: 'string.concat' error message uses wrong format

This commit is contained in:
Roberto Ierusalimschy
2021-02-15 13:31:45 -03:00
parent 38cc7d40a4
commit c03c527fd2
2 changed files with 4 additions and 1 deletions

View File

@@ -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);
}