From d28eb4406da176d68f2566314022c1db54ff221c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Obernd=C3=B6rfer?= Date: Wed, 2 Apr 2014 12:39:35 +0200 Subject: [PATCH] Fix error message for unsupported key packet version --- src/packet/public_key.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.'); } };