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

Panic on prompt duplication #810

Merged
merged 4 commits into from
Feb 4, 2025
Merged

Panic on prompt duplication #810

merged 4 commits into from
Feb 4, 2025

Conversation

serkm
Copy link
Contributor

@serkm serkm commented Feb 3, 2025

Detect an invalid state dynamically and panic (#244).

Todo: print proper error message

@b-studios
Copy link
Collaborator

@serkm Do you want to print an error message as part of this PR, or should we just merge this?

Could you add one test where this is triggered, so we can make sure it works? (I guess an example is maybe difficult to construct).

@serkm
Copy link
Contributor Author

serkm commented Feb 3, 2025

I can't think of a non-confusing error message.
I'll add a test.

@b-studios
Copy link
Collaborator

The concrete message is not so important, it's more important that it's unique so that users can find this PR and potentially related issues.

@b-studios b-studios merged commit cfa951e into effekt-lang:master Feb 4, 2025
2 checks passed
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