Re: How can a module intentionally fail to load?
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: How can a module intentionally fail to load?
- From: nobody <nobody+lua-list@...>
- Date: Tue, 7 Aug 2018 04:59:03 +0200
On 2018年08月07日 04:32, Sean Conner wrote:>
-----[ my-tls.lua / loaded as a module ]----
local tls = require "org.conman.tls"
if tls.LIBRESSL_VERSION < 0x2050000f then
??? there's no point in continuing with loading
??? this module, because libtls will not let us
??? control the socket.
end
How to I abort the module? There's nothing I can find in the
documentation to deal with this, unless I'm missing something.
Does just throwing an error or assert()ing the test work?