Skip to content

Commit

Permalink
fix: non-fatal error on settings migration system
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelHillcox committed Mar 18, 2024
1 parent ac1301c commit 44a40b8
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,13 @@ public static void attemptMigration() {
LOGGER.error("Failed to delete old settings file.", e);
}
} catch (IOException e) {
throw new RuntimeException(e);
LOGGER.error("Failed to migrate settings file. Aborting migration process.", e);
LOGGER.info("Deleting old settings file. If possible");
try {
Files.deleteIfExists(Constants.SETTINGS_FILE_LEGACY);
} catch (IOException ex) {
LOGGER.error("Failed to delete old settings file.", ex);
}
}
}

Expand Down

0 comments on commit 44a40b8

Please sign in to comment.