Broadcast error messages within Cluster.getConnectionStatus (#6964)

Signed-off-by: Sebastian Malton <sebastian@malton.name>

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton authored and GitHub committed 2023-01-19 08:23:50 -05:00
1 parent 2cc7ad111a
commit 8009d96957
1 file changed
+2
+2
View File
@@ -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);
}