Skip to content

Document :description field in CompileError #14692

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

eksperimental
Copy link
Contributor

No description provided.

@josevalim
Copy link
Member

Question: why are we making it public? Is it being used anywhere?

@eksperimental
Copy link
Contributor Author

I'm writing some compile-time checks in which I want to provide a message other than "compile error" explaining what went wrong and how to fix it.

@josevalim
Copy link
Member

You should preferrably raise your own exception instead of reusing CompileError :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants