ENT-1873 address code review changes (#3323)

This commit is contained in:
Tudor Malene 2018-06-08 10:24:00 +01:00 committed by GitHub
parent 0cab721b47
commit b9bf624e7a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1025,7 +1025,7 @@ fun configureDatabase(hikariProperties: Properties,
} catch (ex: Exception) {
when {
ex is HikariPool.PoolInitializationException -> throw CouldNotCreateDataSourceException("Could not connect to the database. Please check your JDBC connection URL, or the connectivity to the database.")
ex.cause is ClassNotFoundException -> throw CouldNotCreateDataSourceException("Could not find the database driver class. Please add it to the 'drivers' folders. See: https://docs.corda.net/corda-configuration-file.html")
ex.cause is ClassNotFoundException -> throw CouldNotCreateDataSourceException("Could not find the database driver class. Please add it to the 'drivers' folder. See: https://docs.corda.net/corda-configuration-file.html")
else -> throw CouldNotCreateDataSourceException("Could not create the DataSource: ${ex.message}", ex)
}
}