summaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src/operations/pay.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2020-09-01 18:27:22 +0530
committerFlorian Dold <florian.dold@gmail.com>2020-09-01 18:27:22 +0530
commit8c33e05bf08976403719a17b1faf424109a7eaa5 (patch)
tree61c72737640c9b552c41f62640cfb0c8c845f38a /packages/taler-wallet-core/src/operations/pay.ts
parent5056da6548d5880211abd3e1cdacd92134e40dab (diff)
downloadwallet-core-8c33e05bf08976403719a17b1faf424109a7eaa5.tar.gz
wallet-core-8c33e05bf08976403719a17b1faf424109a7eaa5.tar.bz2
wallet-core-8c33e05bf08976403719a17b1faf424109a7eaa5.zip
harmonized error codesv0.7.1-dev.23
Diffstat (limited to 'packages/taler-wallet-core/src/operations/pay.ts')
-rw-r--r--packages/taler-wallet-core/src/operations/pay.ts10
1 files changed, 5 insertions, 5 deletions
diff --git a/packages/taler-wallet-core/src/operations/pay.ts b/packages/taler-wallet-core/src/operations/pay.ts
index 7b8a1efac..6981b44fc 100644
--- a/packages/taler-wallet-core/src/operations/pay.ts
+++ b/packages/taler-wallet-core/src/operations/pay.ts
@@ -46,7 +46,7 @@ import {
} from "../types/talerTypes";
import {
ConfirmPayResult,
- OperationErrorDetails,
+ TalerErrorDetails,
PreparePayResult,
RefreshReason,
PreparePayResultType,
@@ -516,7 +516,7 @@ async function recordConfirmPay(
async function incrementProposalRetry(
ws: InternalWalletState,
proposalId: string,
- err: OperationErrorDetails | undefined,
+ err: TalerErrorDetails | undefined,
): Promise<void> {
await ws.db.runWithWriteTransaction([Stores.proposals], async (tx) => {
const pr = await tx.get(Stores.proposals, proposalId);
@@ -539,7 +539,7 @@ async function incrementProposalRetry(
async function incrementPurchasePayRetry(
ws: InternalWalletState,
proposalId: string,
- err: OperationErrorDetails | undefined,
+ err: TalerErrorDetails | undefined,
): Promise<void> {
logger.warn("incrementing purchase pay retry with error", err);
await ws.db.runWithWriteTransaction([Stores.purchases], async (tx) => {
@@ -565,7 +565,7 @@ export async function processDownloadProposal(
proposalId: string,
forceNow = false,
): Promise<void> {
- const onOpErr = (err: OperationErrorDetails): Promise<void> =>
+ const onOpErr = (err: TalerErrorDetails): Promise<void> =>
incrementProposalRetry(ws, proposalId, err);
await guardOperationException(
() => processDownloadProposalImpl(ws, proposalId, forceNow),
@@ -1205,7 +1205,7 @@ export async function processPurchasePay(
proposalId: string,
forceNow = false,
): Promise<void> {
- const onOpErr = (e: OperationErrorDetails): Promise<void> =>
+ const onOpErr = (e: TalerErrorDetails): Promise<void> =>
incrementPurchasePayRetry(ws, proposalId, e);
await guardOperationException(
() => processPurchasePayImpl(ws, proposalId, forceNow),