mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 11:35:04 +01:00
be more specific in error message
This commit is contained in:
parent
2de406afa0
commit
6c46cc98de
@ -50,7 +50,7 @@ export async function readKey(txn) {
|
|||||||
export async function keyFromCredential(type, credential, storage, cryptoDriver, olm) {
|
export async function keyFromCredential(type, credential, storage, cryptoDriver, olm) {
|
||||||
const keyDescription = await readDefaultKeyDescription(storage);
|
const keyDescription = await readDefaultKeyDescription(storage);
|
||||||
if (!keyDescription) {
|
if (!keyDescription) {
|
||||||
throw new Error("Could not find any secret storage key in account data");
|
throw new Error("Could not find a default secret storage key in account data");
|
||||||
}
|
}
|
||||||
let key;
|
let key;
|
||||||
if (type === "passphrase") {
|
if (type === "passphrase") {
|
||||||
|
Loading…
Reference in New Issue
Block a user