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
This commit is contained in:
Dominik Stadler 2021-11-02 13:19:03 +00:00
parent 34ea6a50e0
commit f4ae175558
1 changed files with 3 additions and 1 deletions

View File

@ -1177,6 +1177,8 @@ 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);