From 81bad4eb25772b53a5c27b3d889e9f1baa28cd55 Mon Sep 17 00:00:00 2001 From: JaniruTEC Date: Thu, 9 Jul 2020 22:34:57 +0200 Subject: [PATCH] Fixed bug: Some exceptions caused by unlock were not shown If an unmatched exception occurred during unlocking it was neither logged nor shown to the user. --- .../main/java/org/cryptomator/ui/unlock/UnlockWorkflow.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/main/ui/src/main/java/org/cryptomator/ui/unlock/UnlockWorkflow.java b/main/ui/src/main/java/org/cryptomator/ui/unlock/UnlockWorkflow.java index 08b8adf71..20109f01e 100644 --- a/main/ui/src/main/java/org/cryptomator/ui/unlock/UnlockWorkflow.java +++ b/main/ui/src/main/java/org/cryptomator/ui/unlock/UnlockWorkflow.java @@ -9,7 +9,6 @@ import javafx.stage.Window; import org.cryptomator.common.vaults.Vault; import org.cryptomator.common.vaults.VaultState; import org.cryptomator.common.vaults.Volume; -import org.cryptomator.cryptolib.api.CryptoException; import org.cryptomator.cryptolib.api.InvalidPassphraseException; import org.cryptomator.keychain.KeychainAccessException; import org.cryptomator.keychain.KeychainManager; @@ -87,7 +86,7 @@ public class UnlockWorkflow extends Task { } catch (NotDirectoryException | DirectoryNotEmptyException e) { handleInvalidMountPoint(e); throw e; // rethrow to trigger correct exception handling in Task - } catch (CryptoException | Volume.VolumeException | IOException e) { + } catch (Exception e) { handleGenericError(e); throw e; // rethrow to trigger correct exception handling in Task } finally {