From: Petr Špaček Date: Tue, 14 Apr 2020 05:54:57 +0000 (+0200) Subject: lua worker: improve message when missing cqueues X-Git-Tag: v5.1.0~17^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ecc322dffc6af52592d7efe01f45c54bd83a525a;p=thirdparty%2Fknot-resolver.git lua worker: improve message when missing cqueues --- 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