1
0
mirror of https://github.com/arduino/Arduino.git synced 2025-01-18 07:52:14 +01:00

IDE didn't stop if an invalid library is found

This commit is contained in:
Cristian Maglie 2013-07-12 16:22:39 +02:00
parent 92ad5f039c
commit c24b3f6489

View File

@ -1169,10 +1169,15 @@ public class Base {
continue;
}
Library lib = Library.create(subfolder);
// (also replace previously found libs with the same name)
if (lib != null)
res.addOrReplace(lib);
try {
Library lib = Library.create(subfolder);
// (also replace previously found libs with the same name)
if (lib != null)
res.addOrReplace(lib);
} catch (IOException e) {
System.out.println(I18n.format(_("Invalid library found in {0}: {1}"),
subfolder, e.getMessage()));
}
}
return res;
}