Skip to content

Conversation

@FuzzyGamesOn
Copy link
Collaborator

@FuzzyGamesOn FuzzyGamesOn commented Nov 29, 2024

Currently, this error is somewhat vague (should just say "requires", not "logic") and can be triggered from different areas for different reasons. Since this support question comes up decently often (twice today even, haha), wanted to clean this up.

This PR moves the KeyError up and identifies where the error came from. Then, based on that, we can offer some potential solutions to the error.

Also, better identifies whether the object passed into the error is a location or a region, and actually gives the region name if a region. (It didn't before this PR.)

(I wasn't sure if it was okay to use "enum" until I saw BaseClasses was. So using it 😄 )

@FuzzyGamesOn FuzzyGamesOn changed the title Make "Invalid logic error" more descriptive for requires syntax Make "Invalid logic format" more descriptive for requires syntax Nov 29, 2024
axxroytovu
axxroytovu previously approved these changes Nov 29, 2024
@silasary silasary merged commit b465bd8 into main Dec 7, 2024
@silasary silasary deleted the better-error-for-invalid-logic branch December 7, 2024 23:14
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.

4 participants