Skip to content

Commit

Permalink
If theme couldn't be loaded print a message explaining why
Browse files Browse the repository at this point in the history
  • Loading branch information
cmaglie committed May 9, 2018
1 parent b96b250 commit 4aec899
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/src/processing/app/Theme.java
Expand Up @@ -21,6 +21,7 @@

package processing.app;

import static processing.app.I18n.format;
import static processing.app.I18n.tr;

import java.awt.Color;
Expand Down Expand Up @@ -298,6 +299,8 @@ static ZippedTheme load(String namespace, File file) {
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);
}

Expand Down

0 comments on commit 4aec899

Please sign in to comment.