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
1 changed files with 9 additions and 4 deletions

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;
}