mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Added more detailed error message to DataSourceCheck
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@54713 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -38,7 +38,7 @@ public class DataSourceCheck
|
||||
|
||||
private static final String MSG_DB_CONNECTION = "Using database URL '%s' with user '%s'.";
|
||||
private static final String MSG_DB_VERSION = "Connected to database %s version %s";
|
||||
private static final String ERR_DB_CONNECTION = "Database connection failed:";
|
||||
private static final String ERR_DB_CONNECTION = "Database connection failed: %s";
|
||||
|
||||
/**
|
||||
* Constructor-based check of DB connection
|
||||
@@ -56,7 +56,7 @@ public class DataSourceCheck
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
throw new RuntimeException(String.format(ERR_DB_CONNECTION), e);
|
||||
throw new RuntimeException(String.format(ERR_DB_CONNECTION, e.getMessage()), e);
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
Reference in New Issue
Block a user