Skip to content

Commit a0017b3

Browse files
committed
very minor aesthetic change to error messages
1 parent eda339c commit a0017b3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hibernate-testing/src/main/java/org/hibernate/testing/orm/junit/DialectContext.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,11 @@ static void init() {
7878
dialect = constructor.newInstance( new DatabaseMetaDataDialectResolutionInfoAdapter( connection.getMetaData() ) );
7979
}
8080
catch (SQLException sqle) {
81-
throw new JDBCConnectionException( "Could not connect to database with JDBC URL: '"
81+
throw new JDBCConnectionException( "Could not connect to database with JDBC URL '"
8282
+ jdbcUrl + "' [" + sqle.getMessage() + "]", sqle );
8383
}
8484
catch (Exception e) {
85-
throw new HibernateException( "Could not connect to database with dialect class: " + dialectClass, e );
85+
throw new HibernateException( "Could not connect to database with dialect class: " + dialectClass.getName(), e );
8686
}
8787
}
8888

0 commit comments

Comments
 (0)