[pve-devel] [PATCH manager] ui: cluster info: fix displaying error
Fiona Ebner
f.ebner at proxmox.com
Mon Jan 23 14:45:08 CET 2023
The function to set the error mask expects the message as a string,
not the error object.
Signed-off-by: Fiona Ebner <f.ebner at proxmox.com>
---
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
More information about the pve-devel
mailing list