Use ScriptContext.Error
to filter out unrelated error messages
#26
Labels
enhancement
New feature or request
ScriptContext.Error
to filter out unrelated error messages
#26
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:
The text was updated successfully, but these errors were encountered: