summaryrefslogtreecommitdiff
path: root/src/operations/refund.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2020-01-18 23:32:03 +0100
committerFlorian Dold <florian.dold@gmail.com>2020-01-18 23:32:14 +0100
commitaf57a404d070500ce63ed9ed0dfce721e82e4801 (patch)
tree39e97aefffe61c568b64c1d71d66b48e26c905ce /src/operations/refund.ts
parentfcb0565323d3134ec2dc376700ef85a2c7b7becd (diff)
downloadwallet-core-af57a404d070500ce63ed9ed0dfce721e82e4801.tar.gz
wallet-core-af57a404d070500ce63ed9ed0dfce721e82e4801.tar.bz2
wallet-core-af57a404d070500ce63ed9ed0dfce721e82e4801.zip
fix and test case for "insecure" taler://refund URIs
Diffstat (limited to 'src/operations/refund.ts')
-rw-r--r--src/operations/refund.ts4
1 files changed, 2 insertions, 2 deletions
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<string> {
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");