-
-
Notifications
You must be signed in to change notification settings - Fork 12
Description
Mini Micro currently prints all user errors to the first TextDisplay. This is cumbersome to retrieve, since we must read it back from the TextDisplay. This is unintuitive that errors would have to be retrieved this way, and perhaps even a bit backwards that we're reading it from a Display in the first place (which is like reading VRAM in order to troubleshoot your program).
Consider a program that is acting as an OS for Mini Micro. If this program in turn runs a user program that crashes, the entire OS shuts down and its state must be recovered by the OS shell. This means the error that occurred that caused the crash must be retrieved by this OS recovery shell.
A programmatic way of checking for and retrieving errors outside of using TextDisplay would be beneficial. The follow features are requested:
- The option of suppressing the printing of any errors to a TextDisplay.
- An intrinsic that allows us to retrieve the last error. (ie.
lastError).
The format of an error could be a map containing the following:
- The type/classification of error
- The error message/details
- A timestamp of some sort that indicates when the error occurred