aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2023-12-07 18:26:11 +0100
committerFlorian Dold <florian@dold.me>2023-12-07 18:26:11 +0100
commit1a7cd398fb752d059e05ce928236727d0754dad9 (patch)
treea715026fe3263900ee5d0fca1d9acfdf58e33938
parentc61904ab96812016ca6e38ead79cbb134ef4c061 (diff)
downloadwallet-core-1a7cd398fb752d059e05ce928236727d0754dad9.tar.xz
-logging
-rw-r--r--packages/taler-wallet-core/src/operations/pay-merchant.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/packages/taler-wallet-core/src/operations/pay-merchant.ts b/packages/taler-wallet-core/src/operations/pay-merchant.ts
index 157541ed3..fcaabed56 100644
--- a/packages/taler-wallet-core/src/operations/pay-merchant.ts
+++ b/packages/taler-wallet-core/src/operations/pay-merchant.ts
@@ -2634,6 +2634,9 @@ export async function startRefundQueryForUri(
]);
});
if (!purchaseRecord) {
+ logger.error(
+ `no purchase for order ID "${parsedUri.orderId}" from merchant "${parsedUri.merchantBaseUrl}" when processing "${talerUri}"`,
+ );
throw Error("no purchase found, can't refund");
}
const proposalId = purchaseRecord.proposalId;