Skip to content

Commit 2c46cd7

Browse files
Fix errors from mcs being swallowed
1 parent b3bbf32 commit 2c46cd7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

MCGalaxy/Modules/Compiling/CompilerBackends.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@ static int Compile(string path, string args, List<string> output) {
105105

106106
using (Process p = new Process())
107107
{
108-
p.OutputDataReceived += (s, e) => { if (e.Data != null) output.Add(e.Data); };
109-
p.ErrorDataReceived += (s, e) => { }; // swallow stderr output
108+
p.OutputDataReceived += (s, e) => { if (e.Data != null) output.Add(e.Data); }; // csc errors
109+
p.ErrorDataReceived += (s, e) => { if (e.Data != null) output.Add(e.Data); }; // mcs errors
110110

111111
p.StartInfo = psi;
112112
p.Start();
@@ -294,4 +294,4 @@ static string MapAssembly(string[] sysAssemblyPaths, string file) {
294294
}
295295
#endif
296296
}
297-
#endif
297+
#endif

0 commit comments

Comments
 (0)