Skip to content

Commit 65708b6

Browse files
author
Federico Fissore
committed
Print a warning instead than just ignoring #1619
1 parent c0a0e49 commit 65708b6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

app/src/processing/app/packages/Library.java

+5-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,11 @@ private static Library createLibrary(File libFolder) throws IOException {
7777
// 3. check if root folder contains prohibited stuff
7878
for (File file : libFolder.listFiles()) {
7979
if (file.isDirectory()) {
80-
if (!SOURCE_CONTROL_FOLDERS.contains(file.getName()) && !OPTIONAL_FOLDERS.contains(file.getName()))
80+
if (SOURCE_CONTROL_FOLDERS.contains(file.getName())) {
81+
System.out.println("WARNING: Ignoring spurious " + file.getName() + " folder in '" + properties.get("name") + "' library");
82+
continue;
83+
}
84+
if (!OPTIONAL_FOLDERS.contains(file.getName()))
8185
throw new IOException("Invalid folder '" + file.getName() + "'.");
8286
} else {
8387
if (!OPTIONAL_FILES.contains(file.getName()))

0 commit comments

Comments
 (0)