Merge pull request #1046 from eordano/input/errorMessage
Better error message on unsupported input types
This commit is contained in:
commit
6b3c448481
|
@ -125,7 +125,10 @@ Input.prototype.setScript = function(script) {
|
||||||
* @abstract
|
* @abstract
|
||||||
*/
|
*/
|
||||||
Input.prototype.getSignatures = function() {
|
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() {
|
Input.prototype.isFullySigned = function() {
|
||||||
|
|
Loading…
Reference in New Issue