From af57a404d070500ce63ed9ed0dfce721e82e4801 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Sat, 18 Jan 2020 23:32:03 +0100 Subject: fix and test case for "insecure" taler://refund URIs --- src/operations/refund.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/operations/refund.ts') diff --git a/src/operations/refund.ts b/src/operations/refund.ts index 6a96868a3..27d83230a 100644 --- a/src/operations/refund.ts +++ b/src/operations/refund.ts @@ -271,7 +271,7 @@ export async function applyRefund( ): Promise { const parseResult = parseRefundUri(talerRefundUri); - console.log("applying refund"); + console.log("applying refund", parseResult); if (!parseResult) { throw Error("invalid refund URI"); @@ -283,7 +283,7 @@ export async function applyRefund( ]); if (!purchase) { - throw Error("no purchase for the taler://refund/ URI was found"); + throw Error(`no purchase for the taler://refund/ URI (${talerRefundUri}) was found`); } console.log("processing purchase for refund"); -- cgit v1.2.3