Skip to content

Commit

Permalink
Set widget response error string to correct value
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewFerr committed Nov 8, 2024
1 parent cdd1608 commit 2cecdd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/http-api/errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ export class MatrixError extends HTTPError {
url: this.url ?? "",
response: {
errcode: this.errcode ?? "M_UNKNOWN",
error: this.name,
error: this.data.error ?? "Unknown message",
...this.data,
},
};
Expand Down

0 comments on commit 2cecdd1

Please sign in to comment.