Skip to content

Commit 4aec899

Browse files
committed
If theme couldn't be loaded print a message explaining why
1 parent b96b250 commit 4aec899

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: app/src/processing/app/Theme.java

+3
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121

2222
package processing.app;
2323

24+
import static processing.app.I18n.format;
2425
import static processing.app.I18n.tr;
2526

2627
import java.awt.Color;
@@ -298,6 +299,8 @@ static ZippedTheme load(String namespace, File file) {
298299
return new ZippedTheme(namespace, file, zip, name, version);
299300
}
300301
} catch (Exception ex) {
302+
System.err.println(format(tr("Error loading theme {0}: {1}"),
303+
file.getAbsolutePath(), ex.getMessage()));
301304
IOUtils.closeQuietly(zip);
302305
}
303306

0 commit comments

Comments
 (0)