Currently, run-in-roblox uses LogService.MessageOut and will set the exit code to 1 if the messageType == Enum.MessageType.MessageError. However, occasionally Studio will report internal Roblox errors like "Studio beta features failed to fetch". This will cause run-in-roblox to exit with a status code of 1 even if none of the user code had an error.
Instead, maybe run-in-roblox should use ScriptContext.Error to determine the status code and continue to use LogService.MessageOut for logging. ScriptContext.Error provides a reference to the script that errored.
We can probably safely ignore any script errors from outside common services like:
Currently, run-in-roblox uses
LogService.MessageOut
and will set the exit code to 1 if themessageType == Enum.MessageType.MessageError
. However, occasionally Studio will report internal Roblox errors like "Studio beta features failed to fetch". This will cause run-in-roblox to exit with a status code of 1 even if none of the user code had an error.Instead, maybe run-in-roblox should use
ScriptContext.Error
to determine the status code and continue to useLogService.MessageOut
for logging.ScriptContext.Error
provides a reference to the script that errored.We can probably safely ignore any script errors from outside common services like: