Skip to content

feat: expose issue error offsets#1339

Draft
rohan-patnaik wants to merge 1 commit into
google:masterfrom
rohan-patnaik:rpatnaik/cel-error-location-accessors
Draft

feat: expose issue error offsets#1339
rohan-patnaik wants to merge 1 commit into
google:masterfrom
rohan-patnaik:rpatnaik/cel-error-location-accessors

Conversation

@rohan-patnaik

@rohan-patnaik rohan-patnaik commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

What changed

  • Added Issues.Source() for the source attached to parse/check issues.
  • Added Issues.ErrorOffset() and Issues.ErrorOffsetRange() for raw error positions.

Why

Callers that embed CEL in a larger document can map CEL errors back to their own source ranges without parsing display strings.

Fixes #189.

Testing

  • go test ./common ./cel -run 'TestIssues|TestErrors'

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.

Make Errors more useful

1 participant