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

$1 normally adds some information about the location of the error. If $2 is 1 or omitted, that information is the location of the call to $1 itself; 2 uses the location of the call of the function that called error; and so on. Passing 0 omits inclusion of the location information.