]> git.proxmox.com Git - pve-manager.git/commitdiff
ui: cluster info: fix displaying error
authorFiona Ebner <f.ebner@proxmox.com>
Mon, 23 Jan 2023 13:45:08 +0000 (14:45 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 24 Jan 2023 15:15:44 +0000 (16:15 +0100)
The function to set the error mask expects the message as a string,
not the error object.

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
www/manager6/dc/Cluster.js

index afe14bf47596a6cb72400c9fbc92c8869556316b..22b62cc8cfaec2995f37ff16bdd81ed8170d1086 100644 (file)
@@ -72,7 +72,7 @@ Ext.define('PVE.ClusterAdministration', {
                            let msg = Proxmox.Utils.getResponseErrorMessage(error);
                            if (error.status !== 424 && !msg.match(/node is not in a cluster/i)) {
                                // an actual error, not just the "not in a cluster one", so show it!
-                               Proxmox.Utils.setErrorMask(this.getView(), error);
+                               Proxmox.Utils.setErrorMask(this.getView(), msg);
                            }
                        }
                        vm.set('totem', {});