Skip to content

Commit 889dc5b

Browse files
authored
Merge pull request #111 from xPaw/patch-1
Improve grammar of exceptions
2 parents 40632c7 + 0e37543 commit 889dc5b

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
@@ -178,17 +178,17 @@ public static Task RunAsync(string[] args)
178178
179179
static void ThrowArgumentParseFailed(string argumentName, string value)
180180
{
181-
throw new ArgumentException($"Argument '{argumentName}' parse failed. value: {value}");
181+
throw new ArgumentException($"Argument '{argumentName}' failed to parse, provided value: {value}");
182182
}
183183
184184
static void ThrowRequiredArgumentNotParsed(string name)
185185
{
186-
throw new ArgumentException($"Require argument '{name}' does not parsed.");
186+
throw new ArgumentException($"Required argument '{name}' was not specified.");
187187
}
188188
189189
static void ThrowArgumentNameNotFound(string argumentName)
190190
{
191-
throw new ArgumentException($"Argument '{argumentName}' does not found in command prameters.");
191+
throw new ArgumentException($"Argument '{argumentName}' is not recognized.");
192192
}
193193
194194
[MethodImpl(MethodImplOptions.AggressiveInlining)]
@@ -728,4 +728,4 @@ static void EmitConsoleAppBuilder(SourceProductionContext sourceProductionContex
728728
}
729729
sourceProductionContext.AddSource("ConsoleApp.Builder.Help.g.cs", help.ToString());
730730
}
731-
}
731+
}

0 commit comments

Comments
 (0)