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

Don't panic on a bad unary operator #24

Merged
merged 2 commits into from
Aug 18, 2016
Merged

Don't panic on a bad unary operator #24

merged 2 commits into from
Aug 18, 2016

Conversation

mitchellh
Copy link
Contributor

Fixes hashicorp/terraform#5672

This changes the panic on a bad unary operator to a parse error.

The parse error isn't good but at least it isn't crashy anymore. The real long term solution here to get really great errors is to convert this to a pure Go scanner/parser package like we do with HCL and others.

@phinze
Copy link
Contributor

phinze commented Aug 18, 2016

LGTM

@mitchellh mitchellh merged commit 027dd27 into master Aug 18, 2016
@mitchellh mitchellh deleted the b-arith-panic branch August 18, 2016 18:59
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