Skip to content

Commit d13c3d8

Browse files
committed
Use all properties of error responses
1 parent a6304ce commit d13c3d8

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/http-api/errors.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -159,10 +159,7 @@ export class MatrixError extends HTTPError {
159159

160160
public static fromWidgetApiErrorData(data: IWidgetMatrixError): MatrixError {
161161
return new MatrixError(
162-
{
163-
errcode: data.response.errcode,
164-
error: data.response.error,
165-
},
162+
data.response,
166163
data.http_status,
167164
data.url,
168165
undefined,

0 commit comments

Comments
 (0)