From ffbeba4ad515061aa809dd3ee95aa6a7e734aa1d Mon Sep 17 00:00:00 2001 From: DL6ER Date: Thu, 4 Jun 2020 14:47:40 +0200 Subject: [PATCH] Extend warning shown on server-side data processing errors. Signed-off-by: DL6ER --- scripts/pi-hole/js/db_queries.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/pi-hole/js/db_queries.js b/scripts/pi-hole/js/db_queries.js index 7396f23b..c793e92c 100644 --- a/scripts/pi-hole/js/db_queries.js +++ b/scripts/pi-hole/js/db_queries.js @@ -142,7 +142,11 @@ function handleAjaxError(xhr, textStatus) { } else if (xhr.responseText.indexOf("Connection refused") !== -1) { alert("An error occurred while loading the data: Connection refused. Is FTL running?"); } else { - alert("An unknown error occurred while loading the data.\n" + xhr.responseText); + alert( + "An unknown error occurred while loading the data.\n" + + xhr.responseText + + "\nCheck the server's log files (/var/log/lighttpd/error.log when you're using the default Pi-hole web server) for details. You may need to increase the memory available for Pi-hole in case you requested a lot of data." + ); } $("#all-queries_processing").hide();