Module:Fail

From Caves of Qud Wiki
Revision as of 17:13, 9 January 2024 by Sol (talk | contribs) (move documentation out of code)
Jump to navigation Jump to search

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