diff --git a/lib/cash-out/cash-out-tx.js b/lib/cash-out/cash-out-tx.js index d6b7f82b..3dd3632f 100644 --- a/lib/cash-out/cash-out-tx.js +++ b/lib/cash-out/cash-out-tx.js @@ -139,14 +139,14 @@ function getWalletScore (tx, pi) { ? _.assign(tx, { walletScore: highestScore.score }) : _.assign(tx, { walletScore: highestScore.score, - error: 'Ciphertrace score is above defined threshold', + error: 'Address score is above defined threshold', errorCode: 'operatorCancel', dispense: true }) }) - .catch(() => _.assign(tx, { + .catch(error => _.assign(tx, { walletScore: 10, - error: 'Ciphertrace services not available', + error: `Failure getting address score: ${error?.message}`, errorCode: 'operatorCancel', dispense: true })) @@ -155,7 +155,7 @@ function getWalletScore (tx, pi) { if (_.includes(tx.status, statuses) && !_.isNil(tx.walletScore)) { return pi.isValidWalletScore(tx.walletScore) .then(isValid => isValid ? tx : _.assign(tx, { - error: 'Ciphertrace score is above defined threshold', + error: 'Address score is above defined threshold', errorCode: 'operatorCancel', dispense: true }))