ErrPrintf(string)
Description
Section titled âDescriptionâThe ErrPrintf Lua function prints a red error message in the Command Line History and System Monitor.
Argument
Section titled âArgumentâ- String:
The string text to be printed to the Command Line History.
This function does not return anything.
Example
Section titled âExampleâThis example prints âThis is a red error message!â in the Command Line History and System Monitor:
| Copy CodeLua |
| ``` |
| return function() |
-- Prints an error message in the command line feedback in red text.ErrPrintf("This is an error message!")end