Skip to content

Commit b00ce34

Browse files
author
Andreas Fischer
committed
Typo: Unknow -> Unknown
1 parent 9aca150 commit b00ce34

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/encoding/armor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ function getType(text) {
4343
var header = text.match(reHeader);
4444

4545
if (!header) {
46-
throw new Error('Unknow ASCII armor type');
46+
throw new Error('Unknown ASCII armor type');
4747
}
4848

4949
// BEGIN PGP MESSAGE, PART X/Y

test/general/armor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ describe("ASCII armor", function() {
128128
'-----END PGP SIGNNATURE-----'].join('\n');
129129

130130
msg = openpgp.cleartext.readArmored.bind(null, msg);
131-
expect(msg).to.throw(Error, /Unknow ASCII armor type/);
131+
expect(msg).to.throw(Error, /Unknown ASCII armor type/);
132132
});
133133

134134
it('Armor checksum validation', function () {

0 commit comments

Comments
 (0)