summaryrefslogtreecommitdiff
path: root/connectivity
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2015-09-03 22:37:31 +0200
committerAndras Timar <andras.timar@collabora.com>2015-09-18 10:10:45 +0200
commit9a783cf7dbe63d4230fdb5f8d8ef71e7018292f2 (patch)
treeff187aa247d6d74e10c829c7dbbb97a4d6e5f542 /connectivity
parent954f96eae3c05712ce85368895fd8d7ff8136349 (diff)
tdf#92794: '$' should be replaced in error dialog of addressbook
Change-Id: Ic57611be96f160037fbff2e9452f9206083c80e4 Reviewed-on: https://gerrit.libreoffice.org/18324 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com> (cherry picked from commit 01547985ceee8c199dc189071845ef5fcda11782) Reviewed-on: https://gerrit.libreoffice.org/18520
Diffstat (limited to 'connectivity')
-rw-r--r--connectivity/source/drivers/mork/MConnection.cxx8
1 files changed, 6 insertions, 2 deletions
diff --git a/connectivity/source/drivers/mork/MConnection.cxx b/connectivity/source/drivers/mork/MConnection.cxx
index 8112a16d3d20..3f8baafa3b5b 100644
--- a/connectivity/source/drivers/mork/MConnection.cxx
+++ b/connectivity/source/drivers/mork/MConnection.cxx
@@ -143,7 +143,9 @@ void OConnection::construct(const OUString& url,const Sequence< PropertyValue >&
if (!m_pBook->open(strPath.getStr()))
{
SAL_WARN("connectivity.mork", "Can not parse abook mork file: " << strPath);
- throwGenericSQLException( STR_COULD_NOT_LOAD_FILE, *this );
+ const OUString sError( getResources().getResourceStringWithSubstitution(
+ STR_COULD_NOT_LOAD_FILE, "$filename$", abook));
+ ::dbtools::throwGenericSQLException( sError, *this );
}
// read history only in production
@@ -153,7 +155,9 @@ void OConnection::construct(const OUString& url,const Sequence< PropertyValue >&
if (!m_pHistory->open(strPath.getStr()))
{
SAL_WARN("connectivity.mork", "Can not parse history mork file: " << strPath);
- throwGenericSQLException( STR_COULD_NOT_LOAD_FILE, *this );
+ const OUString sError( getResources().getResourceStringWithSubstitution(
+ STR_COULD_NOT_LOAD_FILE, "$filename$", history));
+ ::dbtools::throwGenericSQLException( sError, *this );
}
}