diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2015-09-03 22:37:31 +0200 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-09-12 19:52:19 +0000 |
commit | 01547985ceee8c199dc189071845ef5fcda11782 (patch) | |
tree | 9225c3a8c21a73f4c118fa1bc8749136e2af9937 /connectivity | |
parent | Updated core (diff) | |
download | core-01547985ceee8c199dc189071845ef5fcda11782.tar.gz core-01547985ceee8c199dc189071845ef5fcda11782.zip |
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>
Diffstat (limited to 'connectivity')
-rw-r--r-- | connectivity/source/drivers/mork/MConnection.cxx | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/connectivity/source/drivers/mork/MConnection.cxx b/connectivity/source/drivers/mork/MConnection.cxx index cba95797463b..76159128b406 100644 --- a/connectivity/source/drivers/mork/MConnection.cxx +++ b/connectivity/source/drivers/mork/MConnection.cxx @@ -142,7 +142,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 @@ -152,7 +154,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 ); } } |