Better error message on unsupported input types

This commit is contained in:
Esteban Ordano 2015-02-06 10:14:41 -03:00
parent ebcf3ae991
commit 4781c4328f
1 changed files with 4 additions and 1 deletions

View File

@ -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() {