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

Throw an error if any world description fails to parse or typecheck #2306

Merged
merged 2 commits into from
Feb 3, 2025

Conversation

byorgey
Copy link
Member

@byorgey byorgey commented Feb 2, 2025

Fixes #2304. Previously, any data/worlds/*.world which failed to parse or typecheck only generated a warning, which could be viewed in Messages, but could not be seen if loading a single scenario.

There is not much use to only display a warning and keep going in such a circumstance; presumably the only time this would happen is if someone is developing a world description, in which case they want to know immediately about any errors. This PR makes such world loading failures into an exception rather than a warning.

@byorgey byorgey requested review from kostmo and xsebek February 2, 2025 21:38
@byorgey byorgey added the merge me Trigger the merge process of the Pull request. label Feb 3, 2025
@mergify mergify bot merged commit 3ba90de into main Feb 3, 2025
12 checks passed
@mergify mergify bot deleted the fix/world-errors branch February 3, 2025 02:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge me Trigger the merge process of the Pull request.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Show errors in world DSL files
2 participants