diff options
author | ViKrAm-Bais <vikrambais02@gmail.com> | 2021-03-08 09:51:02 +0530 |
---|---|---|
committer | Michael Stahl <michael.stahl@allotropia.de> | 2021-03-08 11:08:06 +0100 |
commit | 394ad7fa73ec70e576a4b0bdfaa7cc2986e1bf46 (patch) | |
tree | 6a2194999f416ecfe9f8b30270a9126e00d082c2 /basic | |
parent | 9279dce41152ed692c125edfed4c80a7c28c7a0b (diff) |
tdf#42982: improve UNO API error reporting
Change-Id: I20080d81e0b08e6e0dcd421bd75cb7d796e97ea7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112149
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
Diffstat (limited to 'basic')
-rw-r--r-- | basic/source/uno/namecont.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/basic/source/uno/namecont.cxx b/basic/source/uno/namecont.cxx index 28bdab04a298..d42b701a5405 100644 --- a/basic/source/uno/namecont.cxx +++ b/basic/source/uno/namecont.cxx @@ -2327,7 +2327,7 @@ void SAL_CALL SfxLibraryContainer::loadLibrary( const OUString& Name ) " storage!")); if ( !xLibrariesStor.is() ) { - throw uno::RuntimeException("null returned from openStorageElement"); + throw uno::RuntimeException("null returned from openStorageElement",static_cast< cppu::OWeakObject * >(this)); } xLibraryStor = xLibrariesStor->openStorageElement( Name, embed::ElementModes::READ ); @@ -2337,7 +2337,7 @@ void SAL_CALL SfxLibraryContainer::loadLibrary( const OUString& Name ) " storage!")); if ( !xLibrariesStor.is() ) { - throw uno::RuntimeException("null returned from openStorageElement"); + throw uno::RuntimeException("null returned from openStorageElement",static_cast< cppu::OWeakObject * >(this)); } #if OSL_DEBUG_LEVEL > 0 } |