summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-06-02 12:00:59 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-06-02 13:32:08 +0200
commit46a662ea56db5b466b15004a6e68148561d4a649 (patch)
tree412f6fcba77de1dbb6c3bd972a41bdf5df70df79 /package
parentf421c3fa72d85f484f136264917e8d482339150e (diff)
improve exception message
Change-Id: I8ce4e6afff2dd7b029c7e557739a3c3e0b361c98 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116578 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'package')
-rw-r--r--package/source/xstor/xfactory.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/source/xstor/xfactory.cxx b/package/source/xstor/xfactory.cxx
index 192acb7fbeca..f369acca6fd2 100644
--- a/package/source/xstor/xfactory.cxx
+++ b/package/source/xstor/xfactory.cxx
@@ -239,7 +239,7 @@ uno::Reference< uno::XInterface > SAL_CALL OStorageFactory::createInstanceWithAr
}
if ( !CheckPackageSignature_Impl( xInputStream, xSeekable ) )
- throw io::IOException(); // TODO: this is not a package file
+ throw io::IOException("package signature check failed, probably not a package file", nullptr); // TODO: this is not a package file
return static_cast<OWeakObject*>(
new OStorage(xInputStream, nStorageMode, aPropsToSet, m_xContext, nStorageType));