Skip to content

Commit daa9b77

Browse files
authored
use correct parameter name in ArgumentException (#5229)
1 parent 46b7b38 commit daa9b77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Nest/IndexModules/IndexSettings/Settings/AutoExpandReplicas.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public static AutoExpandReplicas Create(int minReplicas, int maxReplicas)
5858
throw new ArgumentException("minReplicas must be greater than or equal to 0", nameof(minReplicas));
5959

6060
if (maxReplicas < 0)
61-
throw new ArgumentException("maxReplicas must be greater than or equal to 0", nameof(minReplicas));
61+
throw new ArgumentException("maxReplicas must be greater than or equal to 0", nameof(maxReplicas));
6262

6363
if (minReplicas > maxReplicas)
6464
throw new ArgumentException("minReplicas must be less than or equal to maxReplicas", nameof(minReplicas));

0 commit comments

Comments
 (0)