Fix error message for unsupported key packet version
This commit is contained in:
parent
fa451ec3f3
commit
d28eb4406d
|
@ -112,7 +112,7 @@ PublicKey.prototype.read = function (bytes) {
|
|||
|
||||
return p + 6;
|
||||
} else {
|
||||
throw new Error('Version ' + version + ' of the key packet is unsupported.');
|
||||
throw new Error('Version ' + this.version + ' of the key packet is unsupported.');
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user