aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src/errors.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2022-10-05 12:52:49 +0200
committerFlorian Dold <florian@dold.me>2022-10-05 12:52:49 +0200
commitdd14e67c70cd7b5b6891295759cb08aa2f94f180 (patch)
tree296b07938b676d21ba9f75196cae621e292fc714 /packages/taler-wallet-core/src/errors.ts
parent4d232fd56510ae69b76fef4f4ecade1e0d4b230d (diff)
downloadwallet-core-dd14e67c70cd7b5b6891295759cb08aa2f94f180.tar.xz
wallet-core: improve crypto worker code duplication
Also add new testCrypto call for later testing
Diffstat (limited to 'packages/taler-wallet-core/src/errors.ts')
-rw-r--r--packages/taler-wallet-core/src/errors.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/packages/taler-wallet-core/src/errors.ts b/packages/taler-wallet-core/src/errors.ts
index 60aecf7a1..f8f5cef0e 100644
--- a/packages/taler-wallet-core/src/errors.ts
+++ b/packages/taler-wallet-core/src/errors.ts
@@ -76,6 +76,9 @@ export interface DetailsMap {
[TalerErrorCode.WALLET_CRYPTO_WORKER_ERROR]: {
innerError: TalerErrorDetail;
};
+ [TalerErrorCode.WALLET_CRYPTO_WORKER_BAD_REQUEST]: {
+ detail: string;
+ };
}
type ErrBody<Y> = Y extends keyof DetailsMap ? DetailsMap[Y] : never;