Skip to content

Commit

Permalink
Fixed errors output.
Browse files Browse the repository at this point in the history
  • Loading branch information
peon501 committed Jan 9, 2019
1 parent 464941e commit f3cf9dc
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion EffectProcessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -158,13 +158,18 @@ public static byte[] RunMGCB(string code, string platform, string winePath, str
proc.Start();

var response = new System.Text.StringBuilder();
var responseErr = new System.Text.StringBuilder();
while (!proc.StandardOutput.EndOfStream){
response.AppendLine(proc.StandardOutput.ReadLine());
}
while (!proc.StandardError.EndOfStream)
{
responseErr.AppendLine(proc.StandardError.ReadLine());
}
if (response.ToString().Contains("Compiled")){
stdoutCompleted.Set();
}else{
error = proc.StandardError.ReadLine();
error = responseErr.ToString();
throw new Exception (error);
}

Expand Down
Binary file modified bin/Debug/Peon501.Pipeline.dll
Binary file not shown.
Binary file modified bin/Debug/Peon501.Pipeline.pdb
Binary file not shown.
Binary file modified obj/Debug/Peon501.Pipeline.dll
Binary file not shown.
Binary file modified obj/Debug/Peon501.Pipeline.pdb
Binary file not shown.

0 comments on commit f3cf9dc

Please sign in to comment.