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,