diff --git a/superset/assets/javascripts/modules/superset.js b/superset/assets/javascripts/modules/superset.js index 1fb0cd9864bb9..9a3de66abba73 100644 --- a/superset/assets/javascripts/modules/superset.js +++ b/superset/assets/javascripts/modules/superset.js @@ -141,10 +141,13 @@ const px = function () { let msg = ''; if (!xhr.responseText) { const status = xhr.status; - msg += 'An unknown error occurred. (Status: ' + status + ')'; if (status === 0) { // This may happen when the worker in gunicorn times out - msg += ' Maybe the request timed out?'; + msg += ( + 'The server could not be reached. You may want to ' + + 'verify your connection and try again.'); + } else { + msg += 'An unknown error occurred. (Status: ' + status + ')'; } } return msg; @@ -163,7 +166,9 @@ const px = function () { } catch (e) { // pass } - errHtml = `