show error

This commit is contained in:
Bruno Windels 2020-09-17 18:59:40 +02:00
parent f58a3ee975
commit 6375574a56

View file

@ -139,9 +139,13 @@ export class SessionStatusViewModel extends ViewModel {
} }
} }
enterPassphrase(passphrase) { async enterPassphrase(passphrase) {
if (passphrase) { if (passphrase) {
this._session.enableSecretStorage("recoverykey", passphrase); try {
await this._session.enableSecretStorage("recoverykey", passphrase);
} catch (err) {
alert(`Could not set up secret storage: ${err.message}`);
}
} }
} }
} }