From d13c3d88f6e19510c3c494d09b24c7985e601bb2 Mon Sep 17 00:00:00 2001 From: Andrew Ferrazzutti Date: Wed, 6 Nov 2024 11:32:35 -0500 Subject: [PATCH] Use all properties of error responses --- src/http-api/errors.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/http-api/errors.ts b/src/http-api/errors.ts index 4fa91e3102..980d4471ed 100644 --- a/src/http-api/errors.ts +++ b/src/http-api/errors.ts @@ -159,10 +159,7 @@ export class MatrixError extends HTTPError { public static fromWidgetApiErrorData(data: IWidgetMatrixError): MatrixError { return new MatrixError( - { - errcode: data.response.errcode, - error: data.response.error, - }, + data.response, data.http_status, data.url, undefined,