be more specific in error message

This commit is contained in:
Bruno Windels 2020-09-18 12:12:52 +02:00
parent 2de406afa0
commit 6c46cc98de

View file

@ -50,7 +50,7 @@ export async function readKey(txn) {
export async function keyFromCredential(type, credential, storage, cryptoDriver, olm) {
const keyDescription = await readDefaultKeyDescription(storage);
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;
if (type === "passphrase") {