modify return code handling from the Command script (#1798)

This commit is contained in:
Ben Fry
2013-06-01 15:35:32 -04:00
parent 9578cea2de
commit cc50178491
2 changed files with 6 additions and 1 deletions

View File

@@ -149,8 +149,12 @@ public class Compiler {
writer.flush();
writer.close();
String errorString = errorBuffer.toString();
if (errorString.trim().length() != 0) {
success = false;
}
BufferedReader reader =
new BufferedReader(new StringReader(errorBuffer.toString()));
new BufferedReader(new StringReader(errorString));
//System.err.println(errorBuffer.toString());
String line = null;