Replaced catch with wildcard catch and added additional logger call

See #1509 for further information and reasoning
This commit is contained in:
JaniruTEC
2021-01-25 16:21:35 +01:00
parent c1f44f76b9
commit 23c113948f
@@ -122,6 +122,7 @@ public class Vault {
}
private void destroyCryptoFileSystem() {
LOG.trace("Trying to close associated CryptoFS...");
CryptoFileSystem fs = cryptoFileSystem.getAndSet(null);
if (fs != null) {
try {
@@ -139,7 +140,7 @@ public class Vault {
try {
volume = volumeProvider.get();
volume.mount(fs, getEffectiveMountFlags());
} catch (IOException | InvalidMountPointException | VolumeException e) {
} catch (Exception e) {
destroyCryptoFileSystem();
throw e;
}