New test.
[mono.git] / mcs / class / Cscompmgd / Microsoft.CSharp / Compiler.cs
index ee3a18bc454d218d15dfe28442ae318fb519ccaf..75d36dabbca6cc5b7a97e36a6a021ca347a4a73f 100644 (file)
@@ -100,10 +100,12 @@ namespace Microsoft.CSharp {
                        mcs.StartInfo.CreateNoWindow = true;
                        mcs.StartInfo.UseShellExecute = false;
                        mcs.StartInfo.RedirectStandardOutput = true;
+                       mcs.StartInfo.RedirectStandardError = true;
 
                        try {
                                mcs.Start ();
-                               mcs_output = mcs.StandardOutput.ReadToEnd();
+                               mcs_output = mcs.StandardError.ReadToEnd ();
+                               mcs.StandardOutput.ReadToEnd ();
                                mcs.WaitForExit ();
                        } finally {
                                mcs.Close ();