mirror of
https://github.com/cryptomator/cryptomator.git
synced 2026-05-17 10:11:27 +00:00
Log cause if a vault is in error state
[ci skip]
This commit is contained in:
@@ -14,6 +14,8 @@ import org.cryptomator.common.settings.Settings;
|
||||
import org.cryptomator.common.settings.VaultSettings;
|
||||
import org.cryptomator.cryptofs.CryptoFileSystemProvider;
|
||||
import org.cryptomator.cryptofs.migration.Migrators;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
import javax.inject.Inject;
|
||||
import javax.inject.Singleton;
|
||||
@@ -30,6 +32,8 @@ import static org.cryptomator.common.Constants.MASTERKEY_FILENAME;
|
||||
@Singleton
|
||||
public class VaultListManager {
|
||||
|
||||
private static final Logger LOG = LoggerFactory.getLogger(VaultListManager.class);
|
||||
|
||||
private final VaultComponent.Builder vaultComponentBuilder;
|
||||
private final ObservableList<Vault> vaultList;
|
||||
|
||||
@@ -93,6 +97,7 @@ public class VaultListManager {
|
||||
return VaultState.LOCKED;
|
||||
}
|
||||
} catch (IOException e) {
|
||||
LOG.warn("Could not determine vault state of " + pathToVault + " due to unexpected exception.", e);
|
||||
return VaultState.ERROR;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user