Report the identity of the connection we're trying to establish.

This is more useful than parroting the lower level exception message, which
will already be shown in the full stack dump anyway.
This commit is contained in:
Michael Bayne
2012-01-13 17:15:10 +00:00
parent d2f530f850
commit 55a866842b
@@ -555,7 +555,8 @@ public class PersistenceContext
try { try {
conn = _conprov.getConnection(_ident, isReadOnly); conn = _conprov.getConnection(_ident, isReadOnly);
} catch (PersistenceException pe) { } catch (PersistenceException pe) {
throw new DatabaseException(pe.getMessage(), pe.getCause()); throw new DatabaseException("Failed get connection [ident=" + _ident +
", isRO=" + isReadOnly + "]", pe.getCause());
} }
// wrap the connection in a proxy that will collect all opened statements // wrap the connection in a proxy that will collect all opened statements