We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca37ca1 commit 7b17ae0Copy full SHA for 7b17ae0
MainForm.cs
@@ -638,13 +638,18 @@ private async Task<bool> TryExtractWithPortable7z()
638
UseShellExecute = false,
639
CreateNoWindow = true,
640
RedirectStandardOutput = false,
641
- RedirectStandardError = false
+ RedirectStandardError = true
642
};
643
644
using (var process = Process.Start(startInfo))
645
{
646
+ var error = await process.StandardError.ReadToEndAsync();
647
+ if (!string.IsNullOrEmpty(error))
648
+ {
649
+ LogMessage($"Portable 7z extraction failed: {Environment.NewLine}{error}");
650
+ }
651
await process.WaitForExitAsync();
- return process.ExitCode == 0;
652
+ return process.ExitCode == 0 && string.IsNullOrEmpty(error);
653
}
654
655
catch (Exception ex)
0 commit comments