[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: How can a module intentionally fail to load?
- From: Dirk Laurie <dirk.laurie@...>
- Date: Tue, 7 Aug 2018 08:05:55 +0200
2018-08-07 4:32 GMT+02:00 Sean Conner <sean@conman.org>:
>
> -----[ 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.
The answer is so simple that maybe I don't understand the question.
Inside that 'if', write a message on io.stderr and return false.