Skip to content

Commit

Permalink
#139 follow up - use Throwable in catch blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
rbygrave committed Oct 31, 2023
1 parent 009dfe0 commit 3ea57f0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public List<MigrationResource> run(Connection connection) {
} catch (MigrationException e) {
rollback(connection);
throw e;
} catch (Exception e) {
} catch (Throwable e) {
log.log(ERROR, "Perform rollback due to DB migration error", e);
rollback(connection);
throw new MigrationException("Error running DB migrations", e);
Expand All @@ -80,7 +80,7 @@ private MigrationTable initialiseMigrationTable(Connection connection) {
final MigrationTable table = new MigrationTable(migrationConfig, connection, checkStateOnly, platform);
table.createIfNeededAndLock();
return table;
} catch (Exception e) {
} catch (Throwable e) {
rollback(connection);
throw new MigrationException("Error initialising db migrations table", e);
}
Expand Down

0 comments on commit 3ea57f0

Please sign in to comment.