Skip to content

Commit

Permalink
Use all properties of error responses
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewFerr committed Nov 6, 2024
1 parent a6304ce commit d13c3d8
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/http-api/errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit d13c3d8

Please sign in to comment.