From aabe966bcf92196cfaed7140efc009c20d036103 Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Tue, 6 May 2025 20:15:53 +0300 Subject: [PATCH] Netowrk error message --- application/Espo/Resources/i18n/en_US/Global.json | 1 + client/src/app.js | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/application/Espo/Resources/i18n/en_US/Global.json b/application/Espo/Resources/i18n/en_US/Global.json index aa754fcb36..cff358af14 100644 --- a/application/Espo/Resources/i18n/en_US/Global.json +++ b/application/Espo/Resources/i18n/en_US/Global.json @@ -162,6 +162,7 @@ "Access": "Access", "Timeout": "Timeout", "No internet": "No internet", + "Network error": "Network error", "Are you sure?": "Are you sure?", "Record has been removed": "Record has been removed", "Wrong username/password": "Wrong username/password", diff --git a/client/src/app.js b/client/src/app.js index 04795e03c5..0599caf2c1 100644 --- a/client/src/app.js +++ b/client/src/app.js @@ -1308,7 +1308,11 @@ class App { let msg = ''; if (!label) { - msg += this.language.translate('Error') + ' ' + xhr.status; + if (xhr.status === 0) { + msg += this.language.translate('Network error'); + } else { + msg += this.language.translate('Error') + ' ' + xhr.status; + } } else { msg += this.language.translate(label); }