summaryrefslogtreecommitdiff
path: root/unotools
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2019-09-20 17:45:00 +0200
committerStephan Bergmann <sbergman@redhat.com>2019-09-20 23:03:31 +0200
commitcb0f4cd9eee8d8f0e0ef92632c6908403a6f4953 (patch)
treee821b8dc0de09b3acd7d7940c7d0b1dfbca511c2 /unotools
parent51f2f6059168615d6d244d6ffda41b81e474c8e8 (diff)
Improve exception message
Change-Id: If608a61f75b63327bed67fc3f752769c3a5bde62 Reviewed-on: https://gerrit.libreoffice.org/79307 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
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