Skip to content

Commit

Permalink
Print full stacktrace for GenerateException, see #2436
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreyAkinshin committed Oct 3, 2023
1 parent dd7a9b7 commit 5838745
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/BenchmarkDotNet/Running/BenchmarkRunnerClean.cs
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ private static Summary Run(BenchmarkRunInfo benchmarkRunInfo,
reports.Add(new BenchmarkReport(false, benchmark, buildResult, buildResult, default, default));

if (buildResult.GenerateException != null)
logger.WriteLineError($"// Generate Exception: {buildResult.GenerateException.Message}");
logger.WriteLineError($"// Generate Exception: {buildResult.GenerateException}");
else if (!buildResult.IsBuildSuccess && buildResult.TryToExplainFailureReason(out string reason))
logger.WriteLineError($"// Build Error: {reason}");
else if (buildResult.ErrorMessage != null)
Expand Down

0 comments on commit 5838745

Please sign in to comment.