summaryrefslogtreecommitdiff
path: root/unotools
diff options
context:
space:
mode:
Diffstat (limited to 'unotools')
-rw-r--r--unotools/source/streaming/streamwrap.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/unotools/source/streaming/streamwrap.cxx b/unotools/source/streaming/streamwrap.cxx
index 97d05180b020..c24fa09015c1 100644
--- a/unotools/source/streaming/streamwrap.cxx
+++ b/unotools/source/streaming/streamwrap.cxx
@@ -134,9 +134,10 @@ void OInputStreamWrapper::checkError() const
{
checkConnected();
- if (m_pSvStream->SvStream::GetError() != ERRCODE_NONE)
+ auto const e = m_pSvStream->SvStream::GetError();
+ if (e != ERRCODE_NONE)
// TODO: really evaluate the error
- throw css::io::NotConnectedException(OUString(), const_cast<css::uno::XWeak*>(static_cast<const css::uno::XWeak*>(this)));
+ throw css::io::NotConnectedException("utl::OInputStreamWrapper error " + e.toHexString(), const_cast<css::uno::XWeak*>(static_cast<const css::uno::XWeak*>(this)));
}
//= OSeekableInputStreamWrapper