Skip to content
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

chore: Handle panics during parsing #2129

Merged
merged 1 commit into from
Apr 30, 2024
Merged

Conversation

charithe
Copy link
Contributor

There are some edge cases where the parser can panic but we don't have
any code samples that trigger it. This PR handles panics and attaches
the context to the error to help us debug those cases.

Signed-off-by: Charith Ellawala charith@cerbos.dev

There are some edge cases where the parser can panic but we don't have
any code samples that trigger it. This PR handles panics and attaches
the context to the error to help us debug those cases.

Signed-off-by: Charith Ellawala <charith@cerbos.dev>
@oguzhand95 oguzhand95 self-requested a review April 30, 2024 09:18
@charithe charithe merged commit cb3c68d into cerbos:main Apr 30, 2024
22 checks passed
@charithe charithe deleted the panic-err branch April 30, 2024 09:48
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.

None yet

2 participants