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 {