Quellcode durchsuchen

Replaced catch with wildcard catch and added additional logger call

See #1509 for further information and reasoning
JaniruTEC vor 4 Jahren
Ursprung
Commit
23c113948f

+ 2 - 1
main/commons/src/main/java/org/cryptomator/common/vaults/Vault.java

@@ -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;
 			}