diff options
Diffstat (limited to 'smcc/src/main/java')
-rw-r--r-- | smcc/src/main/java/at/gv/egiz/smcc/SWCard.java | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/smcc/src/main/java/at/gv/egiz/smcc/SWCard.java b/smcc/src/main/java/at/gv/egiz/smcc/SWCard.java index 7150c8b4..81b347c3 100644 --- a/smcc/src/main/java/at/gv/egiz/smcc/SWCard.java +++ b/smcc/src/main/java/at/gv/egiz/smcc/SWCard.java @@ -224,7 +224,13 @@ public class SWCard implements SignatureCard { } return sb.toString().trim().toCharArray(); } catch (IOException e) { - throw new SignatureCardException("Failed to read file '" + passwordFileName + "'."); + throw new SignatureCardException("Failed to read file '" + passwordFileName + "'.", e); + } finally { + try { + keyStorePasswordFile.close(); + } catch (IOException e) { + throw new SignatureCardException("Failed to close file '" + passwordFileName + "'.", e); + } } } |