improve an error message
This commit is contained in:
parent
cebef1618d
commit
eefa1d9365
|
@ -51,7 +51,7 @@ public class StandardTableExporter implements Exporter<Table> {
|
||||||
Table table,
|
Table table,
|
||||||
Metadata metadata,
|
Metadata metadata,
|
||||||
SqlStringGenerationContext context) {
|
SqlStringGenerationContext context) {
|
||||||
final QualifiedName tableName = getTableName(table);
|
final QualifiedName tableName = getTableName( table );
|
||||||
|
|
||||||
try {
|
try {
|
||||||
final String formattedTableName = context.format( tableName );
|
final String formattedTableName = context.format( tableName );
|
||||||
|
@ -101,7 +101,8 @@ public class StandardTableExporter implements Exporter<Table> {
|
||||||
return sqlStrings.toArray( EMPTY_STRINGS );
|
return sqlStrings.toArray( EMPTY_STRINGS );
|
||||||
}
|
}
|
||||||
catch (Exception e) {
|
catch (Exception e) {
|
||||||
throw new MappingException( "Error creating SQL create commands for table : " + tableName, e );
|
throw new MappingException( "Error creating SQL 'create' commands for table '"
|
||||||
|
+ table.getName() + "' [" + e.getMessage() + "]" , e );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue