Added error output handling in UpdateMetadataCommands

This commit is contained in:
tsommer committed 2025-04-14 11:32:58 +02:00
1 parent f1b5b9e350
commit e161164e21
1 file changed
+6 -1
+6 -1
View File
@@ -279,6 +279,7 @@ public sealed partial class UpdateMetadataCommands
FileName = program,
Arguments = command,
RedirectStandardOutput = true,
RedirectStandardError = true,
UseShellExecute = false,
CreateNoWindow = true
};
@@ -288,9 +289,13 @@ public sealed partial class UpdateMetadataCommands
process.Start();
var output = await process.StandardOutput.ReadToEndAsync();
var error = await process.StandardError.ReadToEndAsync();
await process.WaitForExitAsync();
return output;
return $"""
{output}
{error}
""";
}
private async Task IncreaseBuildNumber()