Skip to content

EspoCRM – Open Source CRM Application

internal server error message

Yurii4212934fd2ea
diff --git a/application/Espo/Resources/i18n/en_US/Global.json b/application/Espo/Resources/i18n/en_US/Global.json
index 3a2acff27c..a674726213 100644
--- a/application/Espo/Resources/i18n/en_US/Global.json
+++ b/application/Espo/Resources/i18n/en_US/Global.json
@@ -167,6 +167,7 @@
"Done": "Done",
"Access denied": "Access denied",
"Not found": "Not found",
+ "Internal server error": "Internal server error",
"Access": "Access",
"Timeout": "Timeout",
"No internet": "No internet",
@@ -336,6 +337,7 @@
"Reactions": "Reactions"
},
"messages": {
+ "checkLogsForDetails": "Check logs for details",
"pleaseWait": "Please wait...",
"loading": "Loading...",
"saving": "Saving...",
diff --git a/client/src/app.js b/client/src/app.js
index 438c785e8e..91fa4eed5f 100644
--- a/client/src/app.js
+++ b/client/src/app.js
@@ -1323,6 +1323,9 @@ class App {
if (!label) {
if (xhr.status === 0) {
msg += this.language.translate('Network error');
+ } else if (xhr.status === 500) {
+ msg += this.language.translate('Internal server error') + '\n\n' +
+ this.language.translate('checkLogsForDetails', 'messages')
} else {
msg += this.language.translate('Error') + ' ' + xhr.status;
}