10000 Added Error Handling to Scenario Resolution in `PostScenarioDialogHandler` by IllianiBird · Pull Request #6442 · MegaMek/mekhq · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Added Error Handling to Scenario Resolution in PostScenarioDialogHandler #6442

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

Merged

Conversation

IllianiBird
Copy link
Collaborator
  • Added a try-catch block around MekHQ.triggerEvent to handle exceptions during scenario resolution.
  • Introduced logging using MMLogger to capture detailed error messages and stack traces.
  • Added an error dialog to inform the user of critical issues and prompt them to report the problem.

A part of the investigation into Sentry report: https://sentry.tapenvy.us/organizations/tapenvyus/issues/4078/?alert_rule_id=13&alert_type=issue&notification_uuid=17ad74c9-582d-4287-8a72-ea9e897dca1e&project=10&referrer=discord

…dler`

- Added a try-catch block around `MekHQ.triggerEvent` to handle exceptions during scenario resolution.
- Introduced logging using `MMLogger` to capture detailed error messages and stack traces.
- Added an error dialog to inform the user of critical issues and prompt them to report the problem.
@IllianiBird IllianiBird added Bug Severity: High Issues described as high severity as per the new issue form labels Mar 26, 2025
@IllianiBird IllianiBird self-assigned this Mar 26, 2025
Copy link
codecov bot commented Mar 26, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 11.28%. Comparing base (a59d1a1) to head (7ba01b2).
Report is 6 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##             master    #6442   +/-   ##
=========================================
  Coverage     11.28%   11.28%           
- Complexity     6282     6287    +5     
=========================================
  Files          1072     1072           
  Lines        136363   136372    +9     
  Branches      21089    21088    -1     
=========================================
+ Hits          15383    15394   +11     
+ Misses       119445   119439    -6     
- Partials       1535     1539    +4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@IllianiBird IllianiBird merged commit 3a27df8 into MegaMek:master Mar 26, 2025
6 checks passed
@IllianiBird IllianiBird deleted the invocationErrorInvestigation branch March 31, 2025 03:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Severity: High Issues described as high severity as per the new issue form
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
0