lua-users home
lua-l archive

Re: How can a module intentionally fail to load?

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


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?

AltStyle によって変換されたページ (->オリジナル) /