From 2cecdd1b73d20ef3cb3daa9ac39cd17cf5bdb3bb Mon Sep 17 00:00:00 2001 From: Andrew Ferrazzutti Date: Fri, 8 Nov 2024 15:30:39 -0500 Subject: [PATCH] Set widget response error string to correct value --- src/http-api/errors.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/http-api/errors.ts b/src/http-api/errors.ts index 4f02ff11b3..ab02ccfcee 100644 --- a/src/http-api/errors.ts +++ b/src/http-api/errors.ts @@ -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, }, };