Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,10 @@ public ThemeModule(File themeFile, ThemeInfo moduleInfo) {
try {
reader = new FileReader(themeFile);
} catch (FileNotFoundException e) {
LOG.error("Theme file not found");
LOG.error("Theme file not found: {}", themeFile.getAbsolutePath());
setValid(false);
addError("Theme file not found: " + themeFile.getAbsolutePath());
return;
}
try {
Theme theme = mapper.readValue(reader, Theme.class);
Expand All @@ -70,6 +73,14 @@ public ThemeModule(File themeFile, ThemeInfo moduleInfo) {
LOG.error("Unable to parse theme file ", e);
setValid(false);
addError("Unable to parse theme file " + themeFile);
} finally {
if (reader != null) {
try {
reader.close();
} catch (IOException e) {
LOG.warn("Failed to close theme file reader", e);
}
}
}
}
}
Expand Down