Skip to content

Commit 0e37543

Browse files
authored
Improve grammar of exceptions
1 parent 8a40cad commit 0e37543

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/ConsoleAppFramework/ConsoleAppGenerator.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -175,17 +175,17 @@ public static Task RunAsync(string[] args)
175175
176176
static void ThrowArgumentParseFailed(string argumentName, string value)
177177
{
178-
throw new ArgumentException($"Argument '{argumentName}' parse failed. value: {value}");
178+
throw new ArgumentException($"Argument '{argumentName}' failed to parse, provided value: {value}");
179179
}
180180
181181
static void ThrowRequiredArgumentNotParsed(string name)
182182
{
183-
throw new ArgumentException($"Require argument '{name}' does not parsed.");
183+
throw new ArgumentException($"Required argument '{name}' was not specified.");
184184
}
185185
186186
static void ThrowArgumentNameNotFound(string argumentName)
187187
{
188-
throw new ArgumentException($"Argument '{argumentName}' does not found in command prameters.");
188+
throw new ArgumentException($"Argument '{argumentName}' is not recognized.");
189189
}
190190
191191
[MethodImpl(MethodImplOptions.AggressiveInlining)]
@@ -725,4 +725,4 @@ static void EmitConsoleAppBuilder(SourceProductionContext sourceProductionContex
725725
}
726726
sourceProductionContext.AddSource("ConsoleApp.Builder.Help.g.cs", help.ToString());
727727
}
728-
}
728+
}

0 commit comments

Comments
 (0)