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

ECR syntax error raises exception that includes line/column information #15222

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

Conversation

nobodywasishere
Copy link
Contributor

Closes #15220. Don't know if I should add a rescue to ECR.process_string that re-raises as a ECR::SyntaxException, for now though I think this works. Didn't end up going with Crystal::SyntaxException as that required pulling in the entire ast / parser / compiler files which seemed silly for a simple exception.

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.

ECR::Lexer#consume_control should raise Crystal::SyntaxException instead of Exception
1 participant