Skip to content

Commit

Permalink
Merge pull request #24 from taskius/hotfix-missingParameterName
Browse files Browse the repository at this point in the history
Pass parameter name to ArgumentException for null or white space check
  • Loading branch information
AArnott authored Oct 29, 2017
2 parents d124bef + 18acb30 commit b8953db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Validation/Requires.cs
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ public static void NotNullOrWhiteSpace([ValidatedNotNull]string value, string pa

if (string.IsNullOrWhiteSpace(value))
{
throw new ArgumentException(Format(Strings.Argument_Whitespace, parameterName));
throw new ArgumentException(Format(Strings.Argument_Whitespace, parameterName), parameterName);
}
}
#endif
Expand Down

0 comments on commit b8953db

Please sign in to comment.