Skip to content

Commit

Permalink
FIx exceptions creation in throw helpers (#1791)
Browse files Browse the repository at this point in the history
  • Loading branch information
IliaBrahinets authored Feb 2, 2025
1 parent 45d6071 commit 28f4c53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Shared/Throw.cs
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public static void IfTrue(bool condition, [CallerArgumentExpression(nameof(condi
if (message is null)
throw new ArgumentException(paramName);
else
throw new ArgumentException(paramName, message);
throw new ArgumentException(message, paramName);
}
}

Expand Down

0 comments on commit 28f4c53

Please sign in to comment.