Skip to content

Improved error handling#881

Merged
mrDIMAS merged 16 commits intomasterfrom
pool_error_handling
Dec 25, 2025
Merged

Improved error handling#881
mrDIMAS merged 16 commits intomasterfrom
pool_error_handling

Conversation

@mrDIMAS
Copy link
Copy Markdown
Member

@mrDIMAS mrDIMAS commented Dec 25, 2025

Pool, Graph and other pool-based containers access methods are now returning Result<..> instead of option. Script and plugin methods is now also return GameResult. Overall this change improves error handling and significantly reduces the amount of boilerplate code by doing something_returning_result()? calls instead of repeating if let Ok(stuff) = something_returning_result() {} everywhere.

@mrDIMAS mrDIMAS merged commit 68d84cb into master Dec 25, 2025
14 of 22 checks passed
@mrDIMAS mrDIMAS deleted the pool_error_handling branch December 25, 2025 16:59
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.

1 participant