This is already defined, so use it where possible.

Signed-off-by: Christoph Heiss <c.he...@proxmox.com>
---
Changes v1 -> v2:
  * no changes

 www/manager6/window/Migrate.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/www/manager6/window/Migrate.js b/www/manager6/window/Migrate.js
index ab0239eaf..8b1dbef89 100644
--- a/www/manager6/window/Migrate.js
+++ b/www/manager6/window/Migrate.js
@@ -139,7 +139,7 @@ Ext.define('PVE.window.Migrate', {
                waitMsgTarget: view,
                method: 'POST',
                failure: function(response, opts) {
-                   Ext.Msg.alert(gettext('Error'), response.htmlStatus);
+                   Ext.Msg.alert(Proxmox.Utils.errorText, response.htmlStatus);
                },
                success: function(response, options) {
                    var upid = response.result.data;
@@ -201,7 +201,7 @@ Ext.define('PVE.window.Migrate', {
                migrateStats = result.data;
                me.fetchingNodeMigrateInfo = false;
            } catch (error) {
-               Ext.Msg.alert(gettext('Error'), error.htmlStatus);
+               Ext.Msg.alert(Proxmox.Utils.errorText, error.htmlStatus);
                return;
            }
 
-- 
2.48.1



_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to