Skip to content

Commit 8677a1f

Browse files
SAT
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
1 parent 70f7633 commit 8677a1f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tools/upgradetool/src/main/java/org/openhab/core/tools/internal/MapDBUpgrader.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public boolean execute(@Nullable Path userdataPath, @Nullable Path confPath) {
9696
newMap.putAll(oldMap);
9797
newDb.commit();
9898

99-
logger.info("Migrated " + newMap.size() + " entries.");
99+
logger.info("Migrated {} entries.", newMap.size());
100100
} finally {
101101
oldDb.close();
102102
newDb.close();
@@ -111,7 +111,7 @@ public boolean execute(@Nullable Path userdataPath, @Nullable Path confPath) {
111111
logger.info("MapDB upgrade completed successfully, old file renamed to .bak.");
112112

113113
return true;
114-
} catch (Throwable e) {
114+
} catch (Error | Exception e) {
115115
logger.error("Error during MapDB upgrade: ", e);
116116
return false;
117117
}

0 commit comments

Comments
 (0)