-
Notifications
You must be signed in to change notification settings - Fork 79
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
Improve parse error message on incorrect template slot #391
Comments
The parser and following CST to AST conversion is a little convoluted, so perhaps not a first issue. For the For the rest of the error text improvement, it will come down to tracking down where the value of |
@john-h-kastner-aws I believe it is here. |
By taking |
Resolved by #411 |
For a policy
permit(principal == ?resource, action, resource)
the parse error message isexpected a entity uid or template slot, found a ??resource statement
. First, it's printing??resource
instead of?resource
(easy fix) and second it's confusing that it expects atemplates slot
even though it found?resource
. It should clarify that is specifically expects?principal
.The text was updated successfully, but these errors were encountered: