Module:Fail

Revision as of 17:13, 9 January 2024 by Sol (talk | contribs) (move documentation out of code)

Raise an error unconditionally. Potentially useful for debugging complex template logic.


local Fail = {}

function Fail.fail(frame)
	assert(false, 'A script error was triggered on purpose')
end

return Fail