1
0
mirror of https://github.com/arduino/Arduino.git synced 2024-11-29 10:24:12 +01:00

If theme couldn't be loaded print a message explaining why

This commit is contained in:
Cristian Maglie 2018-05-09 11:44:03 +02:00
parent b96b2508db
commit 4aec8997e2

View File

@ -21,6 +21,7 @@
package processing.app;
import static processing.app.I18n.format;
import static processing.app.I18n.tr;
import java.awt.Color;
@ -298,6 +299,8 @@ public class Theme {
return new ZippedTheme(namespace, file, zip, name, version);
}
} catch (Exception ex) {
System.err.println(format(tr("Error loading theme {0}: {1}"),
file.getAbsolutePath(), ex.getMessage()));
IOUtils.closeQuietly(zip);
}