Module:Fail

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

function Fail.fail_multiline(frame)
	assert(false, 'A script error was triggered on purpose.\n\nA script error was triggered on purpose.')
end

return Fail