Skip to content

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

@masak

Description

@masak

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions