summaryrefslogtreecommitdiff
path: root/connectivity/source/drivers/dbase/DDriver.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'connectivity/source/drivers/dbase/DDriver.cxx')
-rw-r--r--connectivity/source/drivers/dbase/DDriver.cxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/connectivity/source/drivers/dbase/DDriver.cxx b/connectivity/source/drivers/dbase/DDriver.cxx
index 4c87372a7d..3a2139bdb9 100644
--- a/connectivity/source/drivers/dbase/DDriver.cxx
+++ b/connectivity/source/drivers/dbase/DDriver.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: DDriver.cxx,v $
- * $Revision: 1.11 $
+ * $Revision: 1.11.56.1 $
*
* This file is part of OpenOffice.org.
*
@@ -34,6 +34,7 @@
#include "dbase/DConnection.hxx"
#include <com/sun/star/lang/DisposedException.hpp>
#include "connectivity/dbexception.hxx"
+#include "resource/dbase_res.hrc"
using namespace connectivity::dbase;
using namespace connectivity::file;
@@ -119,7 +120,9 @@ Sequence< DriverPropertyInfo > SAL_CALL ODriver::getPropertyInfo( const ::rtl::O
return Sequence< DriverPropertyInfo >(&(aDriverInfo[0]),aDriverInfo.size());
}
- ::dbtools::throwGenericSQLException(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Invalid URL!")) ,*this);
+ SharedResources aResources;
+ const ::rtl::OUString sMessage = aResources.getResourceString(STR_URI_SYNTAX_ERROR);
+ ::dbtools::throwGenericSQLException(sMessage ,*this);
return Sequence< DriverPropertyInfo >();
}
// -----------------------------------------------------------------------------