Skip to content

Commit 26bb188

Browse files
authored
Improve ValidateLength error message consistency and refactor validation tests (#25806)
1 parent 659c73f commit 26bb188

File tree

2 files changed

+124
-60
lines changed

2 files changed

+124
-60
lines changed

src/System.Management.Automation/resources/Metadata.resx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@
175175
<value>The character length ({1}) of the argument is too short. Specify an argument with a length that is greater than or equal to "{0}", and then try the command again.</value>
176176
</data>
177177
<data name="ValidateLengthMaxLengthFailure" xml:space="preserve">
178-
<value>The character length of the {1} argument is too long. Shorten the character length of the argument so it is fewer than or equal to "{0}" characters, and then try the command again.</value>
178+
<value>The character length ({1}) of the argument is too long. Specify an argument with a length that is shorter than or equal to "{0}", and then try the command again.</value>
179179
</data>
180180
<data name="ValidateSetFailure" xml:space="preserve">
181181
<value>The argument "{0}" does not belong to the set "{1}" specified by the ValidateSet attribute. Supply an argument that is in the set and then try the command again.</value>

0 commit comments

Comments
 (0)