Slightly improved error message when DBSource could not be loaded
(include possibility that driver couldn't be loaded)
This commit is contained in:
parent
a79dfbde18
commit
d0c7012318
1 changed files with 1 additions and 1 deletions
|
@ -365,7 +365,7 @@ public final class DbMapping implements Updatable {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (dbSource == null) {
|
if (dbSource == null) {
|
||||||
throw new SQLException("Datasource is not defined: " + dbSourceName + ".");
|
throw new SQLException("Datasource not defined or unable to load driver: " + dbSourceName + ".");
|
||||||
}
|
}
|
||||||
|
|
||||||
return dbSource.getConnection();
|
return dbSource.getConnection();
|
||||||
|
|
Loading…
Add table
Reference in a new issue