ui: cluster info: fix displaying error

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>
This commit is contained in:
Fiona Ebner 2023-01-23 14:45:08 +01:00 committed by Thomas Lamprecht
parent ab78e7e2d0
commit b7b7b661f6

View 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', {});