tdf#42982 Improve UNO API error reporting

Change-Id: I35b815e45debc479d20c956fd07a188d0251853d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/181293
Tested-by: Jenkins
Reviewed-by: Hossein   <hossein@libreoffice.org>
This commit is contained in:
Akshay Kumar Dubey
2025-02-19 08:29:06 +01:00
committed by Hossein
parent fdd666e566
commit 12d487285b
+3 -1
View File
@@ -50,7 +50,9 @@ embed::VisualRepresentation OleEmbeddedObject::GetVisualRepresentationInNativeFo
// TODO: detect the format in the future for now use workaround
uno::Reference< io::XInputStream > xInStream = xCachedVisRepr->getInputStream();
if ( !xInStream.is() )
throw uno::RuntimeException();
throw uno::RuntimeException(
u"Failed to retrieve input stream from cached visual representation. "_ustr
);
uno::Reference< io::XSeekable > xSeekable( xCachedVisRepr, uno::UNO_QUERY_THROW );
uno::Sequence< sal_Int8 > aSeq( 2 );