diff --git a/fine-hibernate/src/main/java/com/fr/third/org/hibernate/tool/schema/internal/AbstractSchemaMigrator.java b/fine-hibernate/src/main/java/com/fr/third/org/hibernate/tool/schema/internal/AbstractSchemaMigrator.java index ebaec03e6..c9a70763c 100644 --- a/fine-hibernate/src/main/java/com/fr/third/org/hibernate/tool/schema/internal/AbstractSchemaMigrator.java +++ b/fine-hibernate/src/main/java/com/fr/third/org/hibernate/tool/schema/internal/AbstractSchemaMigrator.java @@ -613,12 +613,15 @@ public abstract class AbstractSchemaMigrator implements SchemaMigrator { ExecutionOptions options, GenerationTarget... targets) { if ( !StringHelper.isEmpty( sqlString ) ) { + String formattedSql = null; for ( GenerationTarget target : targets ) { try { - target.accept( formatter.format( sqlString ) ); + formattedSql = formatter.format( sqlString ); + target.accept( formattedSql ); } catch (CommandAcceptanceException e) { if ( !quiet ) { + log.warnf( formattedSql ); options.getExceptionHandler().handleException( e ); } return false;