From 4092921c708076af60696c1cd008d8eedb34f816 Mon Sep 17 00:00:00 2001 From: Andrei Mihu Date: Sun, 24 Nov 2024 22:30:40 +0000 Subject: [PATCH] More linting fixes. --- server/runtime_lua_nakama.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/runtime_lua_nakama.go b/server/runtime_lua_nakama.go index c1311cc3dc..85c49cd315 100644 --- a/server/runtime_lua_nakama.go +++ b/server/runtime_lua_nakama.go @@ -2720,7 +2720,7 @@ func (n *RuntimeLuaNakamaModule) usersGetId(l *lua.LState) int { for i, user := range users.Users { userTable, err := userToLuaTable(l, user) if err != nil { - l.RaiseError(err.Error()) + l.RaiseError("failed to encode users: %s", err.Error()) return 0 } usersTable.RawSetInt(i+1, userTable) @@ -2919,7 +2919,7 @@ func (n *RuntimeLuaNakamaModule) usersGetUsername(l *lua.LState) int { for i, user := range users.Users { userTable, err := userToLuaTable(l, user) if err != nil { - l.RaiseError(err.Error()) + l.RaiseError("failed to encode users: %s", err.Error()) return 0 } usersTable.RawSetInt(i+1, userTable) @@ -3018,7 +3018,7 @@ func (n *RuntimeLuaNakamaModule) usersGetRandom(l *lua.LState) int { for i, user := range users { userTable, err := userToLuaTable(l, user) if err != nil { - l.RaiseError(err.Error()) + l.RaiseError("failed to encode users: %s", err.Error()) return 0 } usersTable.RawSetInt(i+1, userTable)