rconsoleerr Synchronous
consoleerrrconsoleerror
Write an error message to the script console. The supplied value is converted to text. Use it to report an operation that failed. Printing the message does not itself raise an exception or stop the script.
Luau
rconsoleerr(data: any, async: boolean?) -> ()Parameters
| Parameter | Type | Description |
|---|---|---|
data | any | Value to stringify and display. |
async | boolean? | Optional compatibility flag. It is validated as a boolean but does not schedule asynchronous output. |
Returns
()This function returns no values.
Example
Luau
rconsoleshow()
rconsoleerr("Could not parse the selected JSON document.")