summaryrefslogtreecommitdiff
path: root/dbaccess
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2013-11-25 15:00:21 +0100
committerMichael Stahl <mstahl@redhat.com>2013-11-25 15:02:31 +0100
commitae0d2d2eccacc298c0967feb0b434993aae70c05 (patch)
tree6ed3472ffbe493568bcb3f3fbcd8608e74bafa6a /dbaccess
parent3bfac473a1b1dfb2210ec07245e649697679bd83 (diff)
dbaccess: improve exception message when no driver found
Change-Id: I1734034e05324eb0d66fd52444b0521d4143bc12 (cherry picked from commit 7ad1c4356bfde3bf37830fa8e4b3267212473f79)
Diffstat (limited to 'dbaccess')
-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