diff options
author | Michael Stahl <mstahl@redhat.com> | 2013-11-25 15:00:21 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2013-11-25 15:01:17 +0100 |
commit | 7ad1c4356bfde3bf37830fa8e4b3267212473f79 (patch) | |
tree | be6cc9ca06f1780b06072f0aa79abaeb63572aa4 /dbaccess | |
parent | 32f700a683b7faa17c58e6d1aad85915ebd40a1a (diff) |
dbaccess: improve exception message when no driver found
Change-Id: I1734034e05324eb0d66fd52444b0521d4143bc12
Diffstat (limited to 'dbaccess')
-rw-r--r-- | dbaccess/source/core/dataaccess/datasource.cxx | 3 | ||||
-rw-r--r-- | dbaccess/source/core/resource/strings.src | 2 |
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 |