From f4ae1755581e310a0d44c307e4d62cfd3dd9c909 Mon Sep 17 00:00:00 2001 From: Dominik Stadler Date: Tue, 2 Nov 2021 13:19:03 +0000 Subject: Add slightly more output if signature-test fails git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1894681 13f79535-47bb-0310-9956-ffa450edef68 --- .../test/java/org/apache/poi/poifs/crypt/dsig/TestSignatureInfo.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'poi-ooxml') diff --git a/poi-ooxml/src/test/java/org/apache/poi/poifs/crypt/dsig/TestSignatureInfo.java b/poi-ooxml/src/test/java/org/apache/poi/poifs/crypt/dsig/TestSignatureInfo.java index 0bb196af50..fa6054bb92 100644 --- a/poi-ooxml/src/test/java/org/apache/poi/poifs/crypt/dsig/TestSignatureInfo.java +++ b/poi-ooxml/src/test/java/org/apache/poi/poifs/crypt/dsig/TestSignatureInfo.java @@ -1177,7 +1177,9 @@ class TestSignatureInfo { } else if (file.exists()) { try (InputStream fis = new FileInputStream(file)) { keystore.load(fis, password); - } + } catch (IOException e) { + throw new IOException("Failed when reading file " + file, e); + } } else { keystore.load(null, password); } -- cgit v1.2.3