commit 7523ffa9105f71a6a4c201d3ee46dbfccc929cea parent b2fd948a54459a2f8a08e2994e232b575a6049c7 Author: Florian Dold <florian@dold.me> Date: Fri, 30 Jun 2023 13:55:35 +0200 web-utils: create error details with correct code Diffstat:
| M | packages/web-util/src/utils/http-impl.sw.ts | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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`, );