Skip to content

Commit ec44c0e

Browse files
committed
Update warning message, for GitTools#313
1 parent cfd1b07 commit ec44c0e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/GitVersionExe.Tests/ArgumentParserTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ public void Username_and_Password_can_be_parsed()
116116
public void Unknown_output_should_throw()
117117
{
118118
var exception = Assert.Throws<WarningException>(() => ArgumentParser.ParseArguments("targetDirectoryPath -output invalid_value"));
119-
exception.Message.ShouldBe("Value 'invalid_value' cannot be parsed as output type, please use 'json' or 'buildserver'");
119+
exception.Message.ShouldBe("Value 'invalid_value' cannot be parsed as output type, please use 'json', 'props' or 'buildserver'");
120120
}
121121

122122
[Test]

src/GitVersionExe/ArgumentParser.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ public static Arguments ParseArguments(List<string> commandLineArguments)
220220
OutputType outputType;
221221
if (!Enum.TryParse(value, true, out outputType))
222222
{
223-
throw new WarningException(string.Format("Value '{0}' cannot be parsed as output type, please use 'json' or 'buildserver'", value));
223+
throw new WarningException(string.Format("Value '{0}' cannot be parsed as output type, please use 'json', 'props' or 'buildserver'", value));
224224
}
225225

226226
arguments.Output = outputType;

0 commit comments

Comments
 (0)