Fix exception message

pull/307/head
Brett Wooldridge 10 years ago
parent f57de95b7e
commit bd5233b022

@ -79,7 +79,7 @@ public class HikariDataSource extends HikariConfig implements DataSource, Closea
public Connection getConnection() throws SQLException
{
if (isShutdown) {
throw new SQLException("Pool {} has been shutdown", pool.getConfiguration().getPoolName());
throw new SQLException(String.format("Pool %s has been shutdown", pool.getConfiguration().getPoolName()));
}
if (fastPathPool != null) {

@ -222,7 +222,7 @@ public class ShutdownTest
ds.getConnection();
}
catch (SQLException e) {
Assert.assertTrue(e.getMessage().contains("Pool has been shutdown"));
Assert.assertTrue(e.getMessage().contains("has been shutdown"));
}
}

Loading…
Cancel
Save