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:
Ray Gauss
2013-08-30 13:18:16 +00:00
parent 3fac82be1f
commit c2ffe676c3

View File

@@ -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
{