public static void RunMonoProcess(Process process, string name, string resultingFile) { MonoProcessRunner monoProcessRunner = new MonoProcessRunner(); bool flag = monoProcessRunner.Run(process); if (process.ExitCode != 0 || !File.Exists(resultingFile)) { string message = "Failed " + name + ": " + MonoProcessUtility.ProcessToString(process) + " result file exists: " + (object)File.Exists(resultingFile) + ". Timed out: " + (object)!flag + "\n\n" + "stdout:\n" + (object)monoProcessRunner.Output + "\n" + "stderr:\n" + (object)monoProcessRunner.Error + "\n"; Console.WriteLine(message); throw new UnityException(message); } }
public static void RunMonoProcess(Process process, string name, string resultingFile) { MonoProcessRunner monoProcessRunner = new MonoProcessRunner(); bool flag = monoProcessRunner.Run(process); if (process.ExitCode != 0 || !File.Exists(resultingFile)) { string text = string.Concat(new object[] { "Failed ", name, ": ", MonoProcessUtility.ProcessToString(process), " result file exists: ", File.Exists(resultingFile), ". Timed out: ", !flag }); text += "\n\n"; string text2 = text; text = string.Concat(new object[] { text2, "stdout:\n", monoProcessRunner.Output, "\n" }); text2 = text; text = string.Concat(new object[] { text2, "stderr:\n", monoProcessRunner.Error, "\n" }); Console.WriteLine(text); throw new UnityException(text); } }