Skip to content

Commit

Permalink
fix(ERTP): log the payment object when it fails liveness
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelfig committed Aug 17, 2021
1 parent 3ed8e69 commit ed7d5e1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/ERTP/src/paymentLedger.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,10 @@ export const makePaymentLedger = (
* @returns {void}
*/
const assertLivePayment = payment => {
assert(paymentLedger.has(payment), X`payment not found for ${allegedName}`);
assert(
paymentLedger.has(payment),
X`payment not found for ${allegedName}; got ${payment}`,
);
};

/**
Expand Down

0 comments on commit ed7d5e1

Please sign in to comment.