Causes a Lua error message
See also Lua library functions.
Signature:
error("message" [, level])
Arguments:
message- An error message to be displayed (string)level- Level in the function stack at which the error message begins providing function information; e.g. 1 (the default, if omitted) to start at the position whereerror()was called, 2 to start at the function which callederror(), 3 to start at the function which called that function, etc. (number)
This function is defined in the Lua standard libraries