6. error

error(message_part, ..., message_part)

Concatenate all the arguments after converting them to strings, then print the resulting error message on the console. The execution of the script is stopped after this.

See also commands warning() and message().

Examples:

error("FAILED!");

error("Expected ", $expectedCount, ", got ", $count);