Skip to content
Snippets Groups Projects
Verified Commit 4acac574 authored by João Magalhães's avatar João Magalhães :rocket:
Browse files

feat: better messages

parent a2a05ff3
No related branches found
No related tags found
No related merge requests found
Pipeline #763 passed
......@@ -157,9 +157,9 @@ const main = async () => {
const isPanic = err.message === "unreachable";
if (isPanic) {
await wasm();
await start({});
clearCanvas(PIXEL_ERROR_COLOR);
message = "Unrecoverable error, executing low level";
await start();
clearCanvas();
message = "Unrecoverable error, restarting CHIP-8";
}
// pauses the machine, allowing the end-user to act
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment