Skip to content

Wrong argument name used in exception message in GetFieldInternalQuery #415

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

Open
melslenstra-dc opened this issue May 14, 2025 · 0 comments

Comments

@melslenstra-dc
Copy link

See:

throw new ArgumentException($"'{nameof(fieldName)}' cannot be null or empty", nameof(fieldName));

The name of the fieldName argument is added to the exception message, whereas the argument being checked here is actually the fieldValue. Hence, if you specify a null-or-empty fieldValue, you get a rather confusing exception that mentions the wrong argument.

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