summaryrefslogtreecommitdiff
path: root/connectivity/source/drivers/evoab/LDriver.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'connectivity/source/drivers/evoab/LDriver.cxx')
-rw-r--r--connectivity/source/drivers/evoab/LDriver.cxx12
1 files changed, 8 insertions, 4 deletions
diff --git a/connectivity/source/drivers/evoab/LDriver.cxx b/connectivity/source/drivers/evoab/LDriver.cxx
index 9ef5671884..f63b1d7c35 100644
--- a/connectivity/source/drivers/evoab/LDriver.cxx
+++ b/connectivity/source/drivers/evoab/LDriver.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: LDriver.cxx,v $
- * $Revision: 1.10 $
+ * $Revision: 1.10.42.1 $
*
* This file is part of OpenOffice.org.
*
@@ -41,9 +41,9 @@
#include <com/sun/star/ucb/XCommandEnvironment.hpp>
#include <ucbhelper/content.hxx>
#include <tools/debug.hxx>
-#ifndef CONNECTIVITY_EVOAB_DEBUG_HELPER_HXX
+#include "resource/common_res.hrc"
+#include "resource/sharedresources.hxx"
#include "LDebug.hxx"
-#endif
using namespace osl;
using namespace connectivity::evoab;
@@ -500,6 +500,10 @@ rtl::OUString OEvoabDriver::translateFileErrorMessage( oslFileError nFileErr)
Sequence< DriverPropertyInfo > SAL_CALL OEvoabDriver::getPropertyInfo( const ::rtl::OUString& url, const Sequence< PropertyValue >& /*info*/ ) throw(SQLException, RuntimeException)
{
if ( !acceptsURL(url) )
- ::dbtools::throwGenericSQLException(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Invalid URL!")) ,*this);
+ {
+ ::connectivity::SharedResources aResources;
+ const ::rtl::OUString sMessage = aResources.getResourceString(STR_URI_SYNTAX_ERROR);
+ ::dbtools::throwGenericSQLException(sMessage ,*this);
+ } // if ( !acceptsURL(url) )
return Sequence< DriverPropertyInfo >();
}