Skip to content

Conversation

@john-h-kastner-aws
Copy link
Contributor

@john-h-kastner-aws john-h-kastner-aws commented Dec 14, 2023

Description of changes

Small change to get the nicely underlined spans for parse errors on cedar evaluate

[jkastner@dev-dsk-jkastner-1a-3309db3b cedar]$ cedar evaluate '1 / 2'
  × failed to parse the expression
  ╰─▶ division is not supported
   ╭────
 1 │ 1 / 2
   · ─────
   ╰────

Issue #, if available

Checklist for requesting a review

The change in this PR is (choose one, and delete the other options):

  • A bug fix or other functionality change requiring a patch to cedar-policy.

I confirm that this PR (choose one, and delete the other options):

  • Does not update the CHANGELOG because my change does not significantly impact released code.

I confirm that cedar-spec (choose one, and delete the other options):

  • Does not require updates because my change does not impact the Cedar Dafny model or DRT infrastructure.

Disclaimer

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@john-h-kastner-aws john-h-kastner-aws merged commit b383613 into main Dec 14, 2023
@john-h-kastner-aws john-h-kastner-aws deleted the jkastner/err/evaluate branch December 15, 2023 16:45
shaobo-he-aws added a commit that referenced this pull request May 20, 2025
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.

3 participants