Skip to content

Clearer error message for unsupported flags: print names of flags (if possible) #3642

Open
@tiif

Description

@tiif

The error message will be clearer if we can print the exact unsupported flag name in throw_unsup_format! message. This is mentioned in #3609 (comment)_.

For socketpair, only SOCK_DGRAM is not supported. But for other larger functions that involve a lot of flags, it will be useful if there is a helper function that keeps track of unsupported flags that we know and helps to throw error with exact name of the flag.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-diagnosticserrors and warnings emitted by miriC-enhancementCategory: a PR with an enhancement or an issue tracking an accepted enhancement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions