rconsoleerr Synchronous

  • consoleerr
  • rconsoleerror

Mark a failed operation in the script console with an Error label. It gives the user a visible failure message without changing Luau control flow.

Syntax
Luau
rconsoleerr(data: any, async: boolean?) -> ()

Parameters

Function parameters
ParameterTypeDescription
dataanyError value to stringify.
asyncboolean?Optional compatibility boolean; validated but otherwise unused.

Returns

()

No values.

Usage notes

If the caller also needs to stop, raise an error separately.

A displayed message is clipped at about 8 KiB or 128 lines. By default, the console keeps up to 300 entries within a 64 KiB text/layout budget and evicts older output. Use writefile for a complete log.

Example

Example
Luau
rconsoleshow()
local ok, result = pcall(function() return readfile("required-input.txt") end)
if not ok then rconsoleerr(result) end