Improve parse error for is <string-lit>
#1252
Labels
papercut
Small annoyances in the Cedar SDK. Lower priority fixes than bugs. Smaller than a fature request
Before opening, please confirm:
Bug Category
Cedar Parser
Describe the bug
Parsing the policy
permit(principal, action, resource) when { principal is "User" };
gives the errorThis error should be more useful:
User
should be rendered as a string"User"
try using `==` to test equality
help text is not so useful because in this case it's just a likely that they meant to drop the quotes forprincipal is User
.Expected behavior
.
Reproduction steps
.
Code Snippet
// Put your code below this line.
Log output
Additional configuration
No response
Operating System
No response
Additional information and screenshots
No response
The text was updated successfully, but these errors were encountered: