Skip to content

Commit 924ca6d

Browse files
authored
Always fail if dotnet command failed. (#2535)
1 parent 43c7b56 commit 924ca6d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/BenchmarkDotNet/Toolchains/DotNetCli/DotNetCliCommandResult.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public static DotNetCliCommandResult Failure(TimeSpan time, string standardError
3535

3636
[PublicAPI]
3737
public BuildResult ToBuildResult(GenerateResult generateResult)
38-
=> IsSuccess || File.Exists(generateResult.ArtifactsPaths.ExecutablePath) // dotnet cli could have successfully built the program, but returned 1 as exit code because it had some warnings
38+
=> IsSuccess
3939
? BuildResult.Success(generateResult)
4040
: BuildResult.Failure(generateResult, AllInformation);
4141
}

0 commit comments

Comments
 (0)