Fix error message for unsupported key packet version

This commit is contained in:
Thomas Oberndörfer 2014-04-02 12:39:35 +02:00
parent fa451ec3f3
commit d28eb4406d

View File

@ -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.');
}
};