We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f4c1d80 commit 41c28c3Copy full SHA for 41c28c3
1 file changed
src/Microsoft.DotNet.ImageBuilder/src/ExecuteHelper.cs
@@ -75,7 +75,8 @@ private static string Execute(
75
{
76
info.RedirectStandardError = true;
77
executeMessageOverride ??= $"{info.FileName} {info.Arguments}";
78
- s_loggerService.WriteSubheading($"EXECUTING: {executeMessageOverride}");
+ string prefix = isDryRun ? "EXECUTING [DRY RUN]" : "EXECUTING";
79
+ s_loggerService.WriteSubheading($"{prefix}: {executeMessageOverride}");
80
81
if (isDryRun)
82
@@ -91,7 +92,7 @@ private static string Execute(
91
92
if (processResult.Process.ExitCode != 0)
93
94
string exceptionMsg = errorMessage ?? $@"Failed to execute {info.FileName} {info.Arguments}
-
95
+
96
{processResult.StandardError}";
97
98
throw new InvalidOperationException(exceptionMsg);
0 commit comments