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

Simplify error reporting #524

Merged
merged 5 commits into from
Jan 14, 2025

Conversation

Nadrieril
Copy link
Member

This puts ErrorCtx under a RefCell, which removes the need for &mut references for error reporting. This makes it possible to simplify the error macros a bunch. While I was at it, I made them into proper formatting macros so we don't need to call format! when using them.

@Nadrieril Nadrieril merged commit ac84f11 into AeneasVerif:main Jan 14, 2025
5 checks passed
@Nadrieril Nadrieril deleted the simplify-error-handling branch January 14, 2025 15:08
@sonmarcho
Copy link
Member

Oh great!! It was really annoying to carry the error context everywhere

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.

2 participants