From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id D522E96142 for ; Mon, 23 Jan 2023 14:45:42 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id A4B5427C67 for ; Mon, 23 Jan 2023 14:45:12 +0100 (CET) Received: from proxmox-new.maurer-it.com (proxmox-new.maurer-it.com [94.136.29.106]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS for ; Mon, 23 Jan 2023 14:45:12 +0100 (CET) Received: from proxmox-new.maurer-it.com (localhost.localdomain [127.0.0.1]) by proxmox-new.maurer-it.com (Proxmox) with ESMTP id CD4DF45B08 for ; Mon, 23 Jan 2023 14:45:11 +0100 (CET) From: Fiona Ebner To: pve-devel@lists.proxmox.com Date: Mon, 23 Jan 2023 14:45:08 +0100 Message-Id: <20230123134508.121996-1-f.ebner@proxmox.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 0 AWL 2.522 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment RCVD_IN_DNSWL_HI -5 Sender listed at https://www.dnswl.org/, high trust SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Subject: [pve-devel] [PATCH manager] ui: cluster info: fix displaying error X-BeenThere: pve-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Jan 2023 13:45:42 -0000 The function to set the error mask expects the message as a string, not the error object. Signed-off-by: Fiona Ebner --- www/manager6/dc/Cluster.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/manager6/dc/Cluster.js b/www/manager6/dc/Cluster.js index afe14bf4..22b62cc8 100644 --- a/www/manager6/dc/Cluster.js +++ b/www/manager6/dc/Cluster.js @@ -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', {}); -- 2.30.2