From 7a994749b439b99147ae08551a11f56f46487b84 Mon Sep 17 00:00:00 2001 From: Sebastian Malton Date: Tue, 17 Jan 2023 09:09:23 -0500 Subject: [PATCH] Broadcast error messages within Cluster.getConnectionStatus Signed-off-by: Sebastian Malton --- src/common/cluster/cluster.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/common/cluster/cluster.ts b/src/common/cluster/cluster.ts index c8e7e69e90..c68fd41c8a 100644 --- a/src/common/cluster/cluster.ts +++ b/src/common/cluster/cluster.ts @@ -560,6 +560,8 @@ export class Cluster implements ClusterModel { const message = String(error.error || error.message) || String(error); this.broadcastConnectUpdate(message, true); + } else if (error instanceof Error || typeof error === "string") { + this.broadcastConnectUpdate(`${error}`, true); } else { this.broadcastConnectUpdate("Unknown error has occurred", true); }