Fix keybase key fetching

This commit is contained in:
Yarmo Mackenbach 2020-07-05 17:25:11 +02:00
parent 4db908b8dd
commit e98cee4b4a

View file

@ -609,10 +609,9 @@ async function fetchKeys(opts) {
return response; return response;
} }
}) })
.then(response => response.blob())
.then(response => response.text()); .then(response => response.text());
} catch (e) { } catch (e) {
throw("Error: No public keys could be fetched from the Keybase account."); throw(`Error: No public keys could be fetched from the Keybase account (${e}).`);
} }
output.publicKey = (await openpgp.key.readArmored(opts.plaintext)).keys[0]; output.publicKey = (await openpgp.key.readArmored(opts.plaintext)).keys[0];