[Libreoffice-commits] core.git: package/source
Noel Grandin (via logerrit)
logerrit at kemper.freedesktop.org
Wed Jun 2 11:32:52 UTC 2021
package/source/xstor/xfactory.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 46a662ea56db5b466b15004a6e68148561d4a649
Author: Noel Grandin <noel.grandin at collabora.co.uk>
AuthorDate: Wed Jun 2 12:00:59 2021 +0200
Commit: Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Wed Jun 2 13:32:08 2021 +0200
improve exception message
Change-Id: I8ce4e6afff2dd7b029c7e557739a3c3e0b361c98
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116578
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>
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));
More information about the Libreoffice-commits
mailing list