summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2023-06-30 13:55:35 +0200
committerFlorian Dold <florian@dold.me>2023-06-30 13:55:35 +0200
commit7523ffa9105f71a6a4c201d3ee46dbfccc929cea (patch)
tree8c7e9a4bf29a659208cb7bf77ae63ceaab4fffcf
parentb2fd948a54459a2f8a08e2994e232b575a6049c7 (diff)
downloadwallet-core-7523ffa9105f71a6a4c201d3ee46dbfccc929cea.tar.gz
wallet-core-7523ffa9105f71a6a4c201d3ee46dbfccc929cea.tar.bz2
wallet-core-7523ffa9105f71a6a4c201d3ee46dbfccc929cea.zip
web-utils: create error details with correct code
-rw-r--r--packages/web-util/src/utils/http-impl.sw.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/web-util/src/utils/http-impl.sw.ts b/packages/web-util/src/utils/http-impl.sw.ts
index dbb1f7834..5c15475ce 100644
--- a/packages/web-util/src/utils/http-impl.sw.ts
+++ b/packages/web-util/src/utils/http-impl.sw.ts
@@ -109,7 +109,7 @@ export class ServiceWorkerHttpLib implements HttpRequestLibrary {
} catch (e) {
if (controller.signal) {
throw TalerError.fromDetail(
- controller.signal.reason,
+ TalerErrorCode.WALLET_HTTP_REQUEST_GENERIC_TIMEOUT,
{},
`request to ${requestUrl} timed out`,
);