be more specific in error message
This commit is contained in:
parent
2de406afa0
commit
6c46cc98de
1 changed files with 1 additions and 1 deletions
|
@ -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") {
|
||||||
|
|
Reference in a new issue