File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -1132,14 +1132,14 @@ public void rebuildExamplesMenu(JMenu menu) {
1132
1132
}
1133
1133
}
1134
1134
1135
- public LibraryList scanLibraries (List <File > folders ) {
1135
+ public LibraryList scanLibraries (List <File > folders ) throws IOException {
1136
1136
LibraryList res = new LibraryList ();
1137
1137
for (File folder : folders )
1138
1138
res .addOrReplaceAll (scanLibraries (folder ));
1139
1139
return res ;
1140
1140
}
1141
1141
1142
- public LibraryList scanLibraries (File folder ) {
1142
+ public LibraryList scanLibraries (File folder ) throws IOException {
1143
1143
LibraryList res = new LibraryList ();
1144
1144
1145
1145
String list [] = folder .list (new OnlyDirs ());
@@ -1184,7 +1184,11 @@ public void onBoardOrPortChange() {
1184
1184
// Scan for libraries in each library folder.
1185
1185
// Libraries located in the latest folders on the list can override
1186
1186
// other libraries with the same name.
1187
- libraries = scanLibraries (librariesFolders );
1187
+ try {
1188
+ libraries = scanLibraries (librariesFolders );
1189
+ } catch (IOException e ) {
1190
+ showWarning (_ ("Error" ), _ ("Error reading preferences" ), e );
1191
+ }
1188
1192
String currentArch = Base .getTargetPlatform ().getName ();
1189
1193
libraries = libraries .filterByArchitecture (currentArch );
1190
1194
You can’t perform that action at this time.
0 commit comments