Removed unnecessary error message

This commit is contained in:
Manindra Moharana
2015-08-28 21:13:34 -07:00
parent 2e0d96e58e
commit e7ea6c7a3d

View File

@@ -844,11 +844,10 @@ public class ErrorCheckerService implements Runnable {
codeFolderChecked = true;
// huh? doesn't this mean .length() == 0? [fry]
if (codeFolderClassPath.equalsIgnoreCase("")) {
System.err.format("Cannot find \"%s\" library. Line %d in tab %s%n",
entry, impstat.getLineNumber(),
editor.getSketch().getCode(impstat.getTab()).getPrettyName());
System.err.println("Make sure that the library is installed properly.");
String message = String.format("Cannot find \"%s\" library in code folder. Line %d in tab %s%n",
entry, impstat.getLineNumber(),
editor.getSketch().getCode(impstat.getTab()).getPrettyName());
Messages.log(message);
} else {
String codeFolderPath[] =
PApplet.split(codeFolderClassPath.substring(1).trim(),