Skip to content

Commit

Permalink
log exceptions and create the BIN dir if absent
Browse files Browse the repository at this point in the history
  • Loading branch information
eggrobin committed Jan 18, 2024
1 parent 8fe764c commit cfc1419
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions UnicodeJsps/src/main/java/org/unicode/jsp/UcdLoader.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ private static void loadUcdHistory(VersionInfo earliest) {
try {
properties.load(property);
} catch (ICUException e) {
e.printStackTrace();
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,10 @@ public synchronized UnicodeMap<String> load(UcdProperty prop2) {

public void internalStoreCachedMap(String dir, UcdProperty prop2, UnicodeMap<String> data) {
try {
final var binDir = new File(dir);
if (!binDir.exists()) {
binDir.mkdir();
}
final String cacheFileDirName = dir + getUcdVersion();
final File cacheFileDir = new File(cacheFileDirName);
if (!cacheFileDir.exists()) {
Expand Down

0 comments on commit cfc1419

Please sign in to comment.