Skip to content

Commit

Permalink
make error hint logging more visible
Browse files Browse the repository at this point in the history
  • Loading branch information
tomix26 committed Dec 7, 2018
1 parent 3ab7b5a commit aa02dad
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ protected synchronized void optimizedDbReset(TestContext testContext, AnnotatedE

originalDbReset(testContext, annotation);
} catch (NoSuchMethodError e) {
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!!!");
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");
throw e;
}
}
Expand All @@ -173,7 +173,7 @@ protected void originalDbReset(TestContext testContext, FlywayTest annotation) {
if (e.getCause() instanceof SQLException) {
String errorCode = ((SQLException) e.getCause()).getSQLState();
if (errorCode != null && errorCode.matches("(42723|42P06|42P07|42712|42710)")) {
logger.error("HINT: Check that you have correctly set org.flywaydb.core.Flyway#schemaNames property!!!");
logger.error("\n\nHINT: Check that you have correctly set org.flywaydb.core.Flyway#schemaNames property!!!\n");
}
}
throw e;
Expand Down

0 comments on commit aa02dad

Please sign in to comment.