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

Use c.abort in macro error cases #305

Merged
merged 1 commit into from
Aug 23, 2023

Conversation

mdedetrich
Copy link
Contributor

I started working on macros recently and when browsing through pekko-http I noticed that we are throwing exceptions rather than c.abort which is what you are intended to use in unhandled macro cases (c.abort contains information about macro expansion such as the current macro position which is helpful for the error message).

Copy link

@nvollmar nvollmar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@mdedetrich mdedetrich merged commit 591a0e6 into apache:main Aug 23, 2023
10 checks passed
@He-Pin
Copy link
Member

He-Pin commented Aug 23, 2023

I know little about macro but Great!

@mdedetrich mdedetrich deleted the use-cabort-in-macro-error branch August 23, 2023 12:18
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