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

Show missing required param message when in standard library format #545

Merged
merged 1 commit into from
Aug 16, 2023

Conversation

chriscerie
Copy link
Collaborator

Closes #544.

If the function has multiple required parameters each with their own message, this will only show the first missing param if it has a message.

The alternative to this is to show every missing parameter's message with an indicator to which arg they associate with, but this may be confusing in cases like assert() with no args. The error message would show the standard library format message of A failed assertion without a message is unhelpful to users, but the bigger issue is they aren't asserting anything at all.

@Kampfkarren
Copy link
Owner

Weird that this wasn't tested, thanks!

@Kampfkarren Kampfkarren enabled auto-merge (squash) August 16, 2023 00:30
@Kampfkarren Kampfkarren merged commit 811d51f into Kampfkarren:main Aug 16, 2023
11 of 12 checks passed
@chriscerie chriscerie deleted the show-param-message branch August 16, 2023 01:31
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.

Specify message passed to standard library format for standard_library missing required parameter
2 participants