diff --git a/src/encoding/armor.js b/src/encoding/armor.js index f7031a49..dcbb6209 100644 --- a/src/encoding/armor.js +++ b/src/encoding/armor.js @@ -43,7 +43,7 @@ function getType(text) { var header = text.match(reHeader); if (!header) { - throw new Error('Unknow ASCII armor type'); + throw new Error('Unknown ASCII armor type'); } // BEGIN PGP MESSAGE, PART X/Y diff --git a/test/general/armor.js b/test/general/armor.js index a0a654e3..69ce787f 100644 --- a/test/general/armor.js +++ b/test/general/armor.js @@ -128,7 +128,7 @@ describe("ASCII armor", function() { '-----END PGP SIGNNATURE-----'].join('\n'); msg = openpgp.cleartext.readArmored.bind(null, msg); - expect(msg).to.throw(Error, /Unknow ASCII armor type/); + expect(msg).to.throw(Error, /Unknown ASCII armor type/); }); it('Armor checksum validation', function () {