mirror of
https://github.com/processing/processing4.git
synced 2026-02-13 18:35:37 +01:00
add more error message text to help with debugging
This commit is contained in:
@@ -412,10 +412,6 @@ public class Runner implements MessageConsumer {
|
||||
//System.out.println(p);
|
||||
String[] errorStrings = PApplet.loadStrings(p.getErrorStream());
|
||||
/*String[] inputStrings =*/ PApplet.loadStrings(p.getInputStream());
|
||||
//System.out.println("error:");
|
||||
PApplet.println(errorStrings);
|
||||
//System.out.println("input:");
|
||||
//PApplet.println(inputStrings);
|
||||
|
||||
if (errorStrings != null && errorStrings.length > 1) {
|
||||
if (errorStrings[0].indexOf("Invalid maximum heap size") != -1) {
|
||||
@@ -423,6 +419,10 @@ public class Runner implements MessageConsumer {
|
||||
"Please lower the value for \u201Cmaximum available memory\u201D in the\n" +
|
||||
"Preferences window. For more information, read Help \u2192 Troubleshooting.",
|
||||
exc);
|
||||
} else {
|
||||
PApplet.println(errorStrings);
|
||||
System.err.println("Using startup command:");
|
||||
PApplet.println(arguments);
|
||||
}
|
||||
} else {
|
||||
exc.printStackTrace();
|
||||
|
||||
Reference in New Issue
Block a user