web-utils: create error details with correct code
This commit is contained in:
parent
b2fd948a54
commit
7523ffa910
@ -109,7 +109,7 @@ export class ServiceWorkerHttpLib implements HttpRequestLibrary {
|
|||||||
} catch (e) {
|
} catch (e) {
|
||||||
if (controller.signal) {
|
if (controller.signal) {
|
||||||
throw TalerError.fromDetail(
|
throw TalerError.fromDetail(
|
||||||
controller.signal.reason,
|
TalerErrorCode.WALLET_HTTP_REQUEST_GENERIC_TIMEOUT,
|
||||||
{},
|
{},
|
||||||
`request to ${requestUrl} timed out`,
|
`request to ${requestUrl} timed out`,
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user