Skip to content

Commit

Permalink
Make the low available memory message a warning
Browse files Browse the repository at this point in the history
Write the low available memory message to err rather than out so that it
appears more like a warning and is more noticeable.
  • Loading branch information
ribbons committed Dec 31, 2013
1 parent 0b72c88 commit 6d5431f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/processing/app/Sketch.java
Original file line number Diff line number Diff line change
Expand Up @@ -1683,7 +1683,7 @@ protected void size(PreferencesMap prefs) throws RunnerException {

int warnDataPercentage = Integer.parseInt(prefs.get("build.warn_data_percentage"));
if (maxDataSize > 0 && dataSize > maxDataSize*warnDataPercentage/100)
System.out.println(_("Low memory available, stability problems may occur"));
System.err.println(_("Low memory available, stability problems may occur."));
}

protected boolean upload(String buildPath, String suggestedClassName, boolean usingProgrammer) throws Exception {
Expand Down

0 comments on commit 6d5431f

Please sign in to comment.