From ecc322dffc6af52592d7efe01f45c54bd83a525a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Petr=20=C5=A0pa=C4=8Dek?= Date: Tue, 14 Apr 2020 07:54:57 +0200 Subject: [PATCH] lua worker: improve message when missing cqueues --- daemon/lua/sandbox.lua.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/daemon/lua/sandbox.lua.in b/daemon/lua/sandbox.lua.in index e5293d17b..3eb9377fa 100644 --- a/daemon/lua/sandbox.lua.in +++ b/daemon/lua/sandbox.lua.in @@ -634,7 +634,9 @@ if has_cqueues then end else -- Disable asynchronous execution - local function disabled () error('cqueues are required for asynchronous execution') end + local function disabled () + error('Lua library cqueues is required for asynchronous execution (luaJIT requires library for Lua 5.1)') + end worker.sleep = disabled worker.map = disabled worker.coroutine = disabled -- 2.47.2