Kaydet (Commit) 7ad1c435 authored tarafından Michael Stahl's avatar Michael Stahl

dbaccess: improve exception message when no driver found

Change-Id: I1734034e05324eb0d66fd52444b0521d4143bc12
üst 32f700a6
...@@ -735,7 +735,8 @@ Reference< XConnection > ODatabaseSource::buildLowLevelConnection(const OUString ...@@ -735,7 +735,8 @@ Reference< XConnection > ODatabaseSource::buildLowLevelConnection(const OUString
if ( !xReturn.is() ) if ( !xReturn.is() )
{ {
OUString sMessage = DBACORE_RESSTRING( nExceptionMessageId ); OUString sMessage = DBACORE_RESSTRING( nExceptionMessageId )
.replaceAll("$name$", m_pImpl->m_sConnectURL);
SQLContext aContext; SQLContext aContext;
aContext.Message = DBACORE_RESSTRING(RID_STR_CONNECTION_REQUEST). aContext.Message = DBACORE_RESSTRING(RID_STR_CONNECTION_REQUEST).
......
...@@ -47,7 +47,7 @@ String RID_STR_COULDNOTCONNECT_UNSPECIFIED ...@@ -47,7 +47,7 @@ String RID_STR_COULDNOTCONNECT_UNSPECIFIED
String RID_STR_COULDNOTCONNECT_NODRIVER 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 String RID_STR_COULDNOTLOAD_MANAGER
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment