9
0
mirror of https://github.com/WiIIiam278/HuskSync.git synced 2026-01-04 15:31:37 +00:00

refactor: catch Throwable, not Exception

This commit is contained in:
William
2023-12-26 12:38:07 +00:00
parent 55173be04b
commit d4f61bd646
2 changed files with 2 additions and 2 deletions

View File

@@ -143,7 +143,7 @@ public class MpdbMigrator extends Migrator {
});
plugin.log(Level.INFO, "Migration complete for " + dataToMigrate.size() + " users in " + ((System.currentTimeMillis() - startTime) / 1000) + " seconds!");
return true;
} catch (Exception e) {
} catch (Throwable e) {
plugin.log(Level.SEVERE, "Error while migrating data: " + e.getMessage() + " - are your source database credentials correct?");
return false;
}