Skip to content

Wrong argument name used in exception message in GetFieldInternalQuery #415

@melslenstra-dc

Description

@melslenstra-dc

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.

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