Fixed translated text string. Show warning message during loading of TargetPlatforms

This commit is contained in:
Cristian Maglie 2013-07-15 21:25:21 +02:00
parent 3a68385c07
commit c70cba8fcd
1 changed files with 8 additions and 3 deletions

View File

@ -23,11 +23,14 @@
*/
package processing.app.debug;
import static processing.app.I18n._;
import java.io.File;
import java.util.Collection;
import java.util.LinkedHashMap;
import java.util.Map;
import processing.app.I18n;
import processing.app.helpers.filefilters.OnlyDirs;
public class TargetPackage {
@ -51,12 +54,14 @@ public class TargetPackage {
TargetPlatform platform = new TargetPlatform(arch, subFolder, this);
platforms.put(arch, platform);
} catch (TargetPlatformException e) {
continue;
System.out.println(e.getMessage());
}
}
if(platforms.size() == 0) {
throw new TargetPlatformException("No architecture directories with boards.txt files were found in hardware folder " + _folder.getName() + ". Is it pre-1.5?");
if (platforms.size() == 0) {
throw new TargetPlatformException(I18n
.format(_("No valid hardware definitions found in folder {0}."),
_folder.getName()));
}
}