mirror of https://github.com/ppy/osu
Output StandardError when an error occurs with a command line invocation.
This commit is contained in:
parent
1699c9fb1d
commit
864a97fa45
|
@ -340,6 +340,7 @@ private static bool runCommand(string command, string args)
|
|||
WorkingDirectory = solutionPath,
|
||||
CreateNoWindow = true,
|
||||
RedirectStandardOutput = true,
|
||||
RedirectStandardError = true,
|
||||
UseShellExecute = false,
|
||||
WindowStyle = ProcessWindowStyle.Hidden
|
||||
};
|
||||
|
@ -348,6 +349,7 @@ private static bool runCommand(string command, string args)
|
|||
if (p == null) return false;
|
||||
|
||||
string output = p.StandardOutput.ReadToEnd();
|
||||
output += p.StandardError.ReadToEnd();
|
||||
|
||||
if (p.ExitCode == 0) return true;
|
||||
|
||||
|
|
Loading…
Reference in New Issue