(encryptionKeyIds)
| 139 | } |
| 140 | |
| 141 | export 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 |
no test coverage detected