Skip to content

Commit af89a43

Browse files
abborgChrisMaddock
authored andcommitted
Format error message when invalidating integer-valued arguments (#486)
1 parent 4f5aa68 commit af89a43

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/NUnitConsole/nunit3-console/CommandLineOptions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ protected int RequiredInt(string val, string option)
235235
}
236236
catch (Exception)
237237
{
238-
ErrorMessages.Add("An int value was expected for option '{0}' but a value of '{1}' was used");
238+
ErrorMessages.Add(String.Format("An int value was expected for option '{0}' but a value of '{1}' was used", option, val));
239239
}
240240
}
241241

0 commit comments

Comments
 (0)