diff options
author | Dominik Stadler <centic@apache.org> | 2021-11-02 13:19:03 +0000 |
---|---|---|
committer | Dominik Stadler <centic@apache.org> | 2021-11-02 13:19:03 +0000 |
commit | f4ae1755581e310a0d44c307e4d62cfd3dd9c909 (patch) | |
tree | b1305034af06dee987adfcb529cf790e886ba598 /poi-ooxml | |
parent | 34ea6a50e02aceaf4075d4a46fba9145a6f3625c (diff) | |
download | poi-f4ae1755581e310a0d44c307e4d62cfd3dd9c909.tar.gz poi-f4ae1755581e310a0d44c307e4d62cfd3dd9c909.zip |
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
Diffstat (limited to 'poi-ooxml')
-rw-r--r-- | poi-ooxml/src/test/java/org/apache/poi/poifs/crypt/dsig/TestSignatureInfo.java | 4 |
1 files changed, 3 insertions, 1 deletions
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); } |