Fixed typo in error messages
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1768808 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -260,12 +260,12 @@ public class SQLProcessor {
|
||||
_connection = TransactionFactoryLoader.getInstance().getConnection(helperInfo);
|
||||
if (Debug.verboseOn()) Debug.logVerbose("SQLProcessor:connection() : manualTx=" + _manualTX, module);
|
||||
} catch (SQLException sqle) {
|
||||
throw new GenericDataSourceException("Unable to esablish a connection with the database.", sqle);
|
||||
throw new GenericDataSourceException("Unable to establish a connection with the database.", sqle);
|
||||
}
|
||||
|
||||
// make sure we actually did get a connection
|
||||
if (_connection == null) {
|
||||
throw new GenericDataSourceException("Unable to esablish a connection with the database. Connection was null!");
|
||||
throw new GenericDataSourceException("Unable to establish a connection with the database. Connection was null!");
|
||||
}
|
||||
|
||||
// test the connection
|
||||
|
||||
@@ -194,14 +194,14 @@ public class SequenceUtil {
|
||||
try {
|
||||
connection = TransactionFactoryLoader.getInstance().getConnection(SequenceUtil.this.helperInfo);
|
||||
} catch (SQLException sqle) {
|
||||
Debug.logWarning("Unable to esablish a connection with the database. Error was:" + sqle.toString(), module);
|
||||
Debug.logWarning("Unable to establish a connection with the database. Error was:" + sqle.toString(), module);
|
||||
throw sqle;
|
||||
} catch (GenericEntityException e) {
|
||||
Debug.logWarning("Unable to esablish a connection with the database. Error was: " + e.toString(), module);
|
||||
Debug.logWarning("Unable to establish a connection with the database. Error was: " + e.toString(), module);
|
||||
throw e;
|
||||
}
|
||||
if (connection == null) {
|
||||
throw new GenericEntityException("Unable to esablish a connection with the database, connection was null...");
|
||||
throw new GenericEntityException("Unable to establish a connection with the database, connection was null...");
|
||||
}
|
||||
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user