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>
diff --git a/basic/source/uno/namecont.cxx b/basic/source/uno/namecont.cxx
index 28bdab0..d42b701 100644
--- a/basic/source/uno/namecont.cxx
+++ b/basic/source/uno/namecont.cxx
@@ -2327,7 +2327,7 @@
" 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 @@
" 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
}