Skip to content

Commit 28f4c53

Browse files
FIx exceptions creation in throw helpers (#1791)
1 parent 45d6071 commit 28f4c53

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Shared/Throw.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ public static void IfTrue(bool condition, [CallerArgumentExpression(nameof(condi
117117
if (message is null)
118118
throw new ArgumentException(paramName);
119119
else
120-
throw new ArgumentException(paramName, message);
120+
throw new ArgumentException(message, paramName);
121121
}
122122
}
123123

0 commit comments

Comments
 (0)