summaryrefslogtreecommitdiffstats
path: root/package/source/xstor/switchpersistencestream.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'package/source/xstor/switchpersistencestream.cxx')
-rw-r--r--package/source/xstor/switchpersistencestream.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/source/xstor/switchpersistencestream.cxx b/package/source/xstor/switchpersistencestream.cxx
index 7eac83cbf708..459f498fb98b 100644
--- a/package/source/xstor/switchpersistencestream.cxx
+++ b/package/source/xstor/switchpersistencestream.cxx
@@ -164,7 +164,7 @@ void SwitchablePersistenceStream::CopyAndSwitchPersistenceTo( const uno::Referen
// the provided stream must be empty
xTargetSeek.set( xTargetStream, uno::UNO_QUERY_THROW );
if ( xTargetSeek->getLength() )
- throw io::IOException();
+ throw io::IOException("provided stream not empty");
}
uno::Reference< io::XTruncate > xTargetTruncate( xTargetStream, uno::UNO_QUERY_THROW );