gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-wallet-core] branch master updated: update error codes


From: gnunet
Subject: [taler-wallet-core] branch master updated: update error codes
Date: Sun, 08 Nov 2020 01:20:52 +0100

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository wallet-core.

The following commit(s) were added to refs/heads/master by this push:
     new c5b25d1c update error codes
c5b25d1c is described below

commit c5b25d1cbd459ed90af3e28c9f8d0899a3a28848
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Sun Nov 8 01:20:50 2020 +0100

    update error codes
---
 packages/taler-integrationtests/src/test-payment-transient.ts | 2 +-
 packages/taler-wallet-core/src/operations/pay.ts              | 2 +-
 packages/taler-wallet-core/src/operations/refund.ts           | 2 +-
 packages/taler-wallet-core/src/operations/reserves.ts         | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/packages/taler-integrationtests/src/test-payment-transient.ts 
b/packages/taler-integrationtests/src/test-payment-transient.ts
index aa0bda2c..6350dc2f 100644
--- a/packages/taler-integrationtests/src/test-payment-transient.ts
+++ b/packages/taler-integrationtests/src/test-payment-transient.ts
@@ -127,7 +127,7 @@ runTest(async (t: GlobalTestState) => {
       faultInjected = true;
       console.log("injecting pay fault");
       const err: TalerErrorDetails = {
-        code: TalerErrorCode.PAY_DB_FETCH_TRANSACTION_ERROR,
+        code: TalerErrorCode.GENERIC_DB_COMMIT_FAILED_HARD,
         details: {},
         hint: "huh",
         message: "something went wrong",
diff --git a/packages/taler-wallet-core/src/operations/pay.ts 
b/packages/taler-wallet-core/src/operations/pay.ts
index 442aeca7..ad970129 100644
--- a/packages/taler-wallet-core/src/operations/pay.ts
+++ b/packages/taler-wallet-core/src/operations/pay.ts
@@ -647,7 +647,7 @@ async function processDownloadProposalImpl(
   );
   if (r.isError) {
     switch (r.talerErrorResponse.code) {
-      case TalerErrorCode.ORDERS_ALREADY_CLAIMED:
+      case TalerErrorCode.MERCHANT_POST_ORDERS_ID_CLAIM_ALREADY_CLAIMED:
         throw OperationFailedError.fromCode(
           TalerErrorCode.WALLET_ORDER_ALREADY_CLAIMED,
           "order already claimed (likely by other wallet)",
diff --git a/packages/taler-wallet-core/src/operations/refund.ts 
b/packages/taler-wallet-core/src/operations/refund.ts
index ff08fc93..49d03ea1 100644
--- a/packages/taler-wallet-core/src/operations/refund.ts
+++ b/packages/taler-wallet-core/src/operations/refund.ts
@@ -264,7 +264,7 @@ async function storeFailedRefund(
   if (p.abortStatus === AbortStatus.AbortRefund) {
     // Refund failed because the merchant didn't even try to deposit
     // the coin yet, so we try to refresh.
-    if (r.exchange_code === TalerErrorCode.REFUND_DEPOSIT_NOT_FOUND) {
+    if (r.exchange_code === TalerErrorCode.EXCHANGE_REFUND_DEPOSIT_NOT_FOUND) {
       const coin = await tx.get(Stores.coins, r.coin_pub);
       if (!coin) {
         logger.warn("coin not found, can't apply refund");
diff --git a/packages/taler-wallet-core/src/operations/reserves.ts 
b/packages/taler-wallet-core/src/operations/reserves.ts
index cced6a1d..b20570e0 100644
--- a/packages/taler-wallet-core/src/operations/reserves.ts
+++ b/packages/taler-wallet-core/src/operations/reserves.ts
@@ -523,7 +523,7 @@ async function updateReserve(
   if (result.isError) {
     if (
       resp.status === 404 &&
-      result.talerErrorResponse.code === TalerErrorCode.RESERVE_STATUS_UNKNOWN
+      result.talerErrorResponse.code === 
TalerErrorCode.EXCHANGE_RESERVES_GET_STATUS_UNKNOWN
     ) {
       ws.notify({
         type: NotificationType.ReserveNotYetFound,

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]