diff --git a/src/packet/public_key.js b/src/packet/public_key.js index 5010351c..1a37f75d 100644 --- a/src/packet/public_key.js +++ b/src/packet/public_key.js @@ -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.'); } };