From 4781c4328f3c55b02b65ef9e628dca93988894b6 Mon Sep 17 00:00:00 2001 From: Esteban Ordano Date: Fri, 6 Feb 2015 10:14:41 -0300 Subject: [PATCH] Better error message on unsupported input types --- lib/transaction/input/input.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/transaction/input/input.js b/lib/transaction/input/input.js index 366a3f7..1255a71 100644 --- a/lib/transaction/input/input.js +++ b/lib/transaction/input/input.js @@ -125,7 +125,10 @@ Input.prototype.setScript = function(script) { * @abstract */ Input.prototype.getSignatures = function() { - throw new errors.AbstractMethodInvoked('Input#getSignatures'); + throw new errors.AbstractMethodInvoked( + 'Trying to sign unsupported output type (only P2PKH and P2SH multisig inputs are supported)' + + ' for input: ' + this.toJSON() + ); }; Input.prototype.isFullySigned = function() {