console: wrap errors #171

Closed
opened 2026-01-03 20:20:43 +00:00 by john · 1 comment
Owner

If you make a syntax error in the console, McRogueFace will crash. This is sort of intentional, but really that behavior is meant for developers' game code: in the console, it's a bit jarring to be dropped for a mistake.

syntax errors should appear in the console rather than crashing the entire executable.

If you make a syntax error in the console, McRogueFace will crash. This is sort of intentional, but really that behavior is meant for developers' game code: in the console, it's a bit jarring to be dropped for a mistake. syntax errors should appear in the console rather than crashing the entire executable.
Author
Owner

replication issue. The actual problem was an exception in a key callback, which I defined in the console... The console does catch errors. To catch errors in callbacks, mcrogueface already supports this, it just has to be started with --continue-after-exceptions.

replication issue. The actual problem was an exception in a key callback, which I defined in the console... The console does catch errors. To catch errors in callbacks, mcrogueface already supports this, it just has to be started with `--continue-after-exceptions`.
john closed this issue 2026-01-03 21:50:54 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
john/McRogueFace#171
No description provided.