web-utils: create error details with correct code

This commit is contained in:
Florian Dold 2023-06-30 13:55:35 +02:00
parent b2fd948a54
commit 7523ffa910
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B

View File

@ -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`,
);