embeddedobj/source/msole/olevisual.cxx |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit 12d487285b4e25415d6807f1856536418640c453
Author:     Akshay Kumar Dubey <akshaymani...@gmail.com>
AuthorDate: Sat Feb 8 19:40:43 2025 +0530
Commit:     Hossein <hoss...@libreoffice.org>
CommitDate: Wed Feb 19 08:29:06 2025 +0100

    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   <hoss...@libreoffice.org>

diff --git a/embeddedobj/source/msole/olevisual.cxx 
b/embeddedobj/source/msole/olevisual.cxx
index bcee997c189e..de54bda88d86 100644
--- a/embeddedobj/source/msole/olevisual.cxx
+++ b/embeddedobj/source/msole/olevisual.cxx
@@ -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 );

Reply via email to