Fix missing detail in the error message

This only happens on calls that need to happen during active connection.
This commit is contained in:
Paul Kulchenko 2023-03-19 22:23:38 -07:00
parent 893703a07b
commit 28f1fef53e

View file

@ -3351,7 +3351,7 @@ static void OnlyCallFromMainProcess(lua_State *L, const char *api) {
static void OnlyCallDuringConnection(lua_State *L, const char *api) {
if (!ishandlingconnection) {
luaL_error(L, "%s() can only be called ", api,
luaL_error(L, "%s() can only be called %s", api,
"while handling a connection");
unreachable;
}