aboutsummaryrefslogtreecommitdiffstats
path: root/poi-ooxml
diff options
context:
space:
mode:
Diffstat (limited to 'poi-ooxml')
-rw-r--r--poi-ooxml/src/test/java/org/apache/poi/poifs/crypt/dsig/TestSignatureInfo.java4
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);
}