mirror of
https://github.com/osukey/osukey.git
synced 2025-05-17 03:27:21 +09:00
Output StandardError when an error occurs with a command line invocation.
This commit is contained in:
parent
1699c9fb1d
commit
864a97fa45
@ -340,6 +340,7 @@ namespace osu.Desktop.Deploy
|
|||||||
WorkingDirectory = solutionPath,
|
WorkingDirectory = solutionPath,
|
||||||
CreateNoWindow = true,
|
CreateNoWindow = true,
|
||||||
RedirectStandardOutput = true,
|
RedirectStandardOutput = true,
|
||||||
|
RedirectStandardError = true,
|
||||||
UseShellExecute = false,
|
UseShellExecute = false,
|
||||||
WindowStyle = ProcessWindowStyle.Hidden
|
WindowStyle = ProcessWindowStyle.Hidden
|
||||||
};
|
};
|
||||||
@ -348,6 +349,7 @@ namespace osu.Desktop.Deploy
|
|||||||
if (p == null) return false;
|
if (p == null) return false;
|
||||||
|
|
||||||
string output = p.StandardOutput.ReadToEnd();
|
string output = p.StandardOutput.ReadToEnd();
|
||||||
|
output += p.StandardError.ReadToEnd();
|
||||||
|
|
||||||
if (p.ExitCode == 0) return true;
|
if (p.ExitCode == 0) return true;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user