MCPcopy Index your code
hub / github.com/mailvelope/mailvelope / noKeyFoundError

Function noKeyFoundError

src/modules/pgpModel.js:141–148  ·  view source on GitHub ↗
(encryptionKeyIds)

Source from the content-addressed store, hash-verified

139}
140
141export function noKeyFoundError(encryptionKeyIds) {
142 const keyId = encryptionKeyIds[0].toHex();
143 let errorMsg = l10n.get('message_no_keys', [keyId.toUpperCase()]);
144 for (let i = 1; i < encryptionKeyIds.length; i++) {
145 errorMsg = `${errorMsg} ${l10n.get('word_or')} ${encryptionKeyIds[i].toHex().toUpperCase()}`;
146 }
147 return new MvError(errorMsg, 'NO_KEY_FOUND');
148}
149
150/**
151 * Parse armored PGP message

Callers 2

decryptMessageFunction · 0.85
decryptFileFunction · 0.85

Calls 2

toHexMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected