![]() ![]() Multiple errors - I may want to throw multiple errors for different bits of invalid data.If the callback did error I want to display it appropriately before continuing the process. Callbacks - A callback could error so it would be wrapped in a protected call. ![]() Run multiple erroneous functions simultaneously - I may wish to call functions back to back without halting if one of them errors.I still want to display an appropriate error message to suggest the action could not be completed. Undoing actions - I may complete an action, attempt to do something which could fail and therefore undo that action.I’ve a few general use cases for such a feature. Using this method to throw an error would not include the stack trace, it would simply display the text in the output with the corresponding color for MessageType. We already have similar methods under TestService, however these of course include test information.Īddressing this would make it much easier to debug different parts of our code, or to display information in a format which is more suitable. The default for MessageType being MessageOutput. LogService:Log("This is for information", ) ![]() LogService:Log("This behaves like print", ) local logService = game:GetService("LogService") Ideally it would be nice to have a method for logging to the output as a member of LogService. As a Roblox developer, it is currently too difficult to display an error message in the output without exiting the thread and it is impossible to display an info message (blue-text) in the output.Īt the moment if you want to display an error without exiting the thread you need to call the error function in a separate thread. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |