mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-08 17:07:21 +00:00
Added error output handling in UpdateMetadataCommands
This commit is contained in:
1 file changed
+7
-2
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user