Skip to content

Commit aa02dad

Browse files
committed
make error hint logging more visible
1 parent 3ab7b5a commit aa02dad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

embedded-database-spring-test/src/main/java/io/zonky/test/db/flyway/OptimizedFlywayTestExecutionListener.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ protected synchronized void optimizedDbReset(TestContext testContext, AnnotatedE
160160

161161
originalDbReset(testContext, annotation);
162162
} catch (NoSuchMethodError e) {
163-
logger.error("HINT: Check that you are using compatible versions of org.flywaydb:flyway-core and org.flywaydb.flyway-test-extensions:flyway-spring-test dependencies!!!");
163+
logger.error("\n\nHINT: Check that you are using compatible versions of org.flywaydb:flyway-core and org.flywaydb.flyway-test-extensions:flyway-spring-test dependencies!!!\n");
164164
throw e;
165165
}
166166
}
@@ -173,7 +173,7 @@ protected void originalDbReset(TestContext testContext, FlywayTest annotation) {
173173
if (e.getCause() instanceof SQLException) {
174174
String errorCode = ((SQLException) e.getCause()).getSQLState();
175175
if (errorCode != null && errorCode.matches("(42723|42P06|42P07|42712|42710)")) {
176-
logger.error("HINT: Check that you have correctly set org.flywaydb.core.Flyway#schemaNames property!!!");
176+
logger.error("\n\nHINT: Check that you have correctly set org.flywaydb.core.Flyway#schemaNames property!!!\n");
177177
}
178178
}
179179
throw e;

0 commit comments

Comments
 (0)