diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-03-08 10:53:31 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-03-08 12:02:38 +0000 |
commit | e4fe6a9c464ff4637696cae333524907ee881a6e (patch) | |
tree | 763654208ef6c32e9562cf9ea1c43af4060984c3 /basic | |
parent | 6a7a5740ad82f2ada6dded286aacc32f2af1b246 (diff) |
state *what* was not found when throwing exception
Diffstat (limited to 'basic')
-rw-r--r-- | basic/source/uno/namecont.cxx | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/basic/source/uno/namecont.cxx b/basic/source/uno/namecont.cxx index f6544b566eeb..a9307d20a0cb 100644 --- a/basic/source/uno/namecont.cxx +++ b/basic/source/uno/namecont.cxx @@ -246,7 +246,10 @@ void NameContainer::removeByName( const OUString& aName ) NameContainerNameMap::iterator aIt = mHashMap.find( aName ); if( aIt == mHashMap.end() ) { - throw NoSuchElementException(); + rtl::OUString sMessage = rtl::OUStringBuffer().append('"') + .append(aName).append("\" not found") + .makeStringAndClear(); + throw NoSuchElementException(sMessage, uno::Reference< uno::XInterface >()); } sal_Int32 iHashResult = (*aIt).second; @@ -1170,16 +1173,15 @@ void SfxLibraryContainer::init_Impl( const OUString& rInitialDocumentURL, mxSFI->kill( aPrevFolder ); } } - catch(const Exception& ) + catch(const Exception& e) { bCleanUp = true; + SAL_WARN("basic", "Upgrade of Basic installation failed somehow: " << e.Message); } // #i93163 if( bCleanUp ) { - SAL_WARN("basic", "Upgrade of Basic installation failed somehow"); - static const char strErrorSavFolderName[] = "__basic_80_err"; INetURLObject aPrevUserBasicInetObj_Err( aUserBasicInetObj ); aPrevUserBasicInetObj_Err.removeSegment(); |