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

Throw from action gets confusing error #273

Closed
diyessi opened this issue Apr 29, 2023 · 2 comments
Closed

Throw from action gets confusing error #273

diyessi opened this issue Apr 29, 2023 · 2 comments

Comments

@diyessi
Copy link

diyessi commented Apr 29, 2023

If an action throws, for example because an any_cast has the wrong type, the problem typically (for me, at least) shows up in the ~Context at assert(cut_stack.empty());, which can be very confusing until you realize what is really going on.

@curldivergence
Copy link

Btw the same problem was mentioned in #269, for now I’ve just commented out that assertion from cpp-peglib.

yhirose added a commit that referenced this issue Apr 30, 2023
@yhirose
Copy link
Owner

yhirose commented Apr 30, 2023

@diyessi, @curldivergence could you try the latest peglib.h? Hope it fixes the issue.

@yhirose yhirose closed this as completed May 12, 2023
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

No branches or pull requests

3 participants