From 17a0f6a1e1ed7ace05a04608e3ef1607d671047c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rasmus=20=C3=98sterg=C3=A5rd?= Date: Mon, 4 Jan 2021 17:18:58 +0100 Subject: [PATCH] use correct parameter name in ArgumentException --- .../IndexModules/IndexSettings/Settings/AutoExpandReplicas.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Nest/IndexModules/IndexSettings/Settings/AutoExpandReplicas.cs b/src/Nest/IndexModules/IndexSettings/Settings/AutoExpandReplicas.cs index 7a45c3ce1a3..414004fd3e6 100644 --- a/src/Nest/IndexModules/IndexSettings/Settings/AutoExpandReplicas.cs +++ b/src/Nest/IndexModules/IndexSettings/Settings/AutoExpandReplicas.cs @@ -58,7 +58,7 @@ public static AutoExpandReplicas Create(int minReplicas, int maxReplicas) throw new ArgumentException("minReplicas must be greater than or equal to 0", nameof(minReplicas)); if (maxReplicas < 0) - throw new ArgumentException("maxReplicas must be greater than or equal to 0", nameof(minReplicas)); + throw new ArgumentException("maxReplicas must be greater than or equal to 0", nameof(maxReplicas)); if (minReplicas > maxReplicas) throw new ArgumentException("minReplicas must be less than or equal to maxReplicas", nameof(minReplicas));