mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-04-28 08:19:47 +00:00
Added error output handling in UpdateMetadataCommands
This commit is contained in:
parent
f1b5b9e350
commit
e161164e21
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user