Skip to content

Commit c70cba8

Browse files
committed
Fixed translated text string. Show warning message during loading of TargetPlatforms
1 parent 3a68385 commit c70cba8

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

app/src/processing/app/debug/TargetPackage.java

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,14 @@
2323
*/
2424
package processing.app.debug;
2525

26+
import static processing.app.I18n._;
27+
2628
import java.io.File;
2729
import java.util.Collection;
2830
import java.util.LinkedHashMap;
2931
import java.util.Map;
3032

33+
import processing.app.I18n;
3134
import processing.app.helpers.filefilters.OnlyDirs;
3235

3336
public class TargetPackage {
@@ -51,12 +54,14 @@ public TargetPackage(String _id, File _folder) throws TargetPlatformException {
5154
TargetPlatform platform = new TargetPlatform(arch, subFolder, this);
5255
platforms.put(arch, platform);
5356
} catch (TargetPlatformException e) {
54-
continue;
57+
System.out.println(e.getMessage());
5558
}
5659
}
5760

58-
if(platforms.size() == 0) {
59-
throw new TargetPlatformException("No architecture directories with boards.txt files were found in hardware folder " + _folder.getName() + ". Is it pre-1.5?");
61+
if (platforms.size() == 0) {
62+
throw new TargetPlatformException(I18n
63+
.format(_("No valid hardware definitions found in folder {0}."),
64+
_folder.getName()));
6065
}
6166
}
6267

0 commit comments

Comments
 (0)