Skip to content

ErrPrintf(string)

The ErrPrintf Lua function prints a red error message in the Command Line History and System Monitor.

  • String:
    The string text to be printed to the Command Line History.

This function does not return anything.

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