Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logging & Exception Fixes #624

Merged
merged 3 commits into from
Jun 11, 2024
Merged

Logging & Exception Fixes #624

merged 3 commits into from
Jun 11, 2024

Conversation

enusbaum
Copy link
Member

Two small fixes around exception handling.

  1. CATASTRO errors were being written to console, not the logger. This means they weren't included in the GUI logs and were lost.
  2. When a module errors out and needs to be disabled, users within the module are supposed to be showed a graceful message. This assumes the users are "IN" a module when a crash happens, but when running Login/Logout routines, the user technically isn't "IN" the module to where they are displayed a message. The result was that MBBSEmu would crash and not disable the module.

This fix allows the module to still be disabled, and since the users are in non-interactive routines, no need to "Gracefully" exit them, they'll exit anyway.

- `CATASTRO` messages were being written to the console, not the Logger
This routine would fail if a user wasn't "IN" a module, but "IN" a module. An example is running a login routine after login.

Because the user wasn't _IN_ the module, this loop would throw an exception.
@enusbaum enusbaum assigned enusbaum and paladine and unassigned enusbaum Jun 11, 2024
@paladine paladine merged commit 71cf3e7 into master Jun 11, 2024
2 checks passed
@paladine paladine deleted the DosCalls branch June 11, 2024 20:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants