cedar-policy / cedar

Implementation of the Cedar Policy Language
https://www.cedarpolicy.com
Apache License 2.0
864 stars 78 forks source link

Error message should suggest sensible alternatives for illegal operators #944

Open cdisselkoen opened 5 months ago

cdisselkoen commented 5 months ago

Category

Error message improvements

Describe the feature you'd like to request

Cedar error messages and suggestions should be better for "common operator errors, such as AND instead of &&" (that was the example in feedback I got). We should think about what all keywords/symbols people might try to use as operators, and provide reasonable suggestions. Possibly-incomplete list:

Describe alternatives you've considered

N/A

Additional context

No response

Is this something that you'd be interested in working on?

mwhicks1 commented 5 months ago

Is this something where we can create a framework for this style of error, and then we can solicit PRs from the community for the most useful/impactful replacements?