Skip to content

Commit c24b3f6

Browse files
committed
IDE didn't stop if an invalid library is found
1 parent 92ad5f0 commit c24b3f6

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

app/src/processing/app/Base.java

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1169,10 +1169,15 @@ public LibraryList scanLibraries(File folder) throws IOException {
11691169
continue;
11701170
}
11711171

1172-
Library lib = Library.create(subfolder);
1173-
// (also replace previously found libs with the same name)
1174-
if (lib != null)
1175-
res.addOrReplace(lib);
1172+
try {
1173+
Library lib = Library.create(subfolder);
1174+
// (also replace previously found libs with the same name)
1175+
if (lib != null)
1176+
res.addOrReplace(lib);
1177+
} catch (IOException e) {
1178+
System.out.println(I18n.format(_("Invalid library found in {0}: {1}"),
1179+
subfolder, e.getMessage()));
1180+
}
11761181
}
11771182
return res;
11781183
}

0 commit comments

Comments
 (0)