From cb0f4cd9eee8d8f0e0ef92632c6908403a6f4953 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Fri, 20 Sep 2019 17:45:00 +0200 Subject: Improve exception message Change-Id: If608a61f75b63327bed67fc3f752769c3a5bde62 Reviewed-on: https://gerrit.libreoffice.org/79307 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- unotools/source/streaming/streamwrap.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'unotools') 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(static_cast(this))); + throw css::io::NotConnectedException("utl::OInputStreamWrapper error " + e.toHexString(), const_cast(static_cast(this))); } //= OSeekableInputStreamWrapper -- cgit