From 28f1fef53e4cd8b27554059b7da2bea57f2af177 Mon Sep 17 00:00:00 2001 From: Paul Kulchenko Date: Sun, 19 Mar 2023 22:23:38 -0700 Subject: [PATCH] Fix missing detail in the error message This only happens on calls that need to happen during active connection. --- tool/net/redbean.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tool/net/redbean.c b/tool/net/redbean.c index 405575624..efe10604a 100644 --- a/tool/net/redbean.c +++ b/tool/net/redbean.c @@ -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; }