paypro: show actual notification if there are no unspent outputs for payment request.

This commit is contained in:
Christopher Jeffrey 2014-08-07 10:36:44 -07:00 committed by Manuel Araoz
commit fe2118fcbe
2 changed files with 6 additions and 9 deletions

View file

@ -934,7 +934,7 @@ Wallet.prototype.receivePaymentRequest = function(options, pr, cb) {
return this.getUnspent(function(err, unspent) {
if (options.fetch) {
if (!unspent || !unspent.length) {
return cb(new Error('No unspent outputs.'));
return cb(new Error('No unspent outputs available.'));
}
self.createPaymentTxSync(options, merchantData, unspent);
return cb(null, merchantData, pr);