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

Handling of MAIN over-catches X::ParameterMismatch exceptions #575

Open
masak opened this issue Oct 24, 2022 · 0 comments
Open

Handling of MAIN over-catches X::ParameterMismatch exceptions #575

masak opened this issue Oct 24, 2022 · 0 comments

Comments

@masak
Copy link
Owner

masak commented Oct 24, 2022

I remember noticing this long ago, but it seems I never reported it as an issue.

The way the MAIN function is handled in the runtime means we catch and handle X::ParameterMismatch exceptions that get thrown as part of MAIN parameter handling. But... we also wrongly catch and handle other thrown X::ParameterMismatch exceptions that get thrown as part of running MAIN. This is wrong.

The solution seems involve separating out parameter binding from actually making the call. So that we can put the CATCH on the parameter binding only.

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

1 participant