summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dbaccess/source/core/dataaccess/datasource.cxx3
-rw-r--r--dbaccess/source/core/resource/strings.src2
2 files changed, 3 insertions, 2 deletions
diff --git a/dbaccess/source/core/dataaccess/datasource.cxx b/dbaccess/source/core/dataaccess/datasource.cxx
index 83bb45eaa496..cd349b722bc9 100644
--- a/dbaccess/source/core/dataaccess/datasource.cxx
+++ b/dbaccess/source/core/dataaccess/datasource.cxx
@@ -735,7 +735,8 @@ Reference< XConnection > ODatabaseSource::buildLowLevelConnection(const OUString
if ( !xReturn.is() )
{
- OUString sMessage = DBACORE_RESSTRING( nExceptionMessageId );
+ OUString sMessage = DBACORE_RESSTRING( nExceptionMessageId )
+ .replaceAll("$name$", m_pImpl->m_sConnectURL);
SQLContext aContext;
aContext.Message = DBACORE_RESSTRING(RID_STR_CONNECTION_REQUEST).
diff --git a/dbaccess/source/core/resource/strings.src b/dbaccess/source/core/resource/strings.src
index a6eb1fe99b76..a2099c1a1d81 100644
--- a/dbaccess/source/core/resource/strings.src
+++ b/dbaccess/source/core/resource/strings.src
@@ -47,7 +47,7 @@ String RID_STR_COULDNOTCONNECT_UNSPECIFIED
String RID_STR_COULDNOTCONNECT_NODRIVER
{
- Text [ en-US ] = "The connection to the external data source could not be established. No SDBC driver was found for the given URL.";
+ Text [ en-US ] = "The connection to the external data source could not be established. No SDBC driver was found for the URL '$name$'.";
};
String RID_STR_COULDNOTLOAD_MANAGER