summaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src/operations/exchanges.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/exchanges.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/exchanges.ts')
-rw-r--r--packages/taler-wallet-core/src/operations/exchanges.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/taler-wallet-core/src/operations/exchanges.ts b/packages/taler-wallet-core/src/operations/exchanges.ts
index 3b7f62fe..76ce874d 100644
--- a/packages/taler-wallet-core/src/operations/exchanges.ts
+++ b/packages/taler-wallet-core/src/operations/exchanges.ts
@@ -20,7 +20,7 @@ import {
codecForExchangeKeysJson,
codecForExchangeWireJson,
} from "../types/talerTypes";
-import { OperationErrorDetails } from "../types/walletTypes";
+import { TalerErrorDetails } from "../types/walletTypes";
import {
ExchangeRecord,
ExchangeUpdateStatus,
@@ -86,7 +86,7 @@ async function denominationRecordFromKeys(
async function setExchangeError(
ws: InternalWalletState,
baseUrl: string,
- err: OperationErrorDetails,
+ err: TalerErrorDetails,
): Promise<void> {
logger.warn(`last error for exchange ${baseUrl}:`, err);
const mut = (exchange: ExchangeRecord): ExchangeRecord => {
@@ -438,7 +438,7 @@ export async function updateExchangeFromUrl(
baseUrl: string,
forceNow = false,
): Promise<ExchangeRecord> {
- const onOpErr = (e: OperationErrorDetails): Promise<void> =>
+ const onOpErr = (e: TalerErrorDetails): Promise<void> =>
setExchangeError(ws, baseUrl, e);
return await guardOperationException(
() => updateExchangeFromUrlImpl(ws, baseUrl, forceNow),