Fix missing detail in the error message in redbean (#768)

This only happens on calls that need to happen during active connection.
This commit is contained in:
Paul Kulchenko 2023-03-20 08:10:32 -07:00 committed by GitHub
parent 893703a07b
commit 58b2f9bd6b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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