Translations:Extension:Scribunto/Lua reference manual/1503/en

If $1 is nil or false, issues an error. In this case, $2 is used as the text of the error: if nil (or unspecified), the text is "assertion failed!"; if a string or number, the text is that value; otherwise assert itself will raise an error.