From 49bd46b8b1883058d49036a2218a16076daa4c26 Mon Sep 17 00:00:00 2001 From: Curtis Lacy Date: Mon, 18 Aug 2014 14:39:06 -0400 Subject: [PATCH] Made the error message when we encounter an unknown script pubkey more clear. --- lib/TransactionBuilder.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/TransactionBuilder.js b/lib/TransactionBuilder.js index 8c03baa..df5d02c 100644 --- a/lib/TransactionBuilder.js +++ b/lib/TransactionBuilder.js @@ -201,7 +201,7 @@ TransactionBuilder.prototype._setInputMap = function() { var scriptType = scriptPubKey.classify(); if (scriptType === Script.TX_UNKNOWN) - throw new Error('unkown output type at:' + i + + throw new Error('Unknown script pubkey type at:' + i + ' Type:' + scriptPubKey.getRawOutType()); inputMap.push({