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:
parent
b96b2508db
commit
4aec8997e2
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user